本文整理汇总了C++中QComboBox::lineEdit方法的典型用法代码示例。如果您正苦于以下问题:C++ QComboBox::lineEdit方法的具体用法?C++ QComboBox::lineEdit怎么用?C++ QComboBox::lineEdit使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QComboBox
的用法示例。
在下文中一共展示了QComboBox::lineEdit方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createEditor
QWidget* ComboBoxDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
QComboBox *comboDelegate = new QComboBox(parent);
comboDelegate->setModel(model);
comboDelegate->setEditable(true);
comboDelegate->setAutoCompletion(true);
comboDelegate->setAutoCompletionCaseSensitivity(Qt::CaseInsensitive);
comboDelegate->completer()->setCompletionMode(QCompleter::PopupCompletion);
comboDelegate->view()->setEditTriggers(QAbstractItemView::AllEditTriggers);
comboDelegate->lineEdit()->installEventFilter( const_cast<QObject*>(qobject_cast<const QObject*>(this)));
comboDelegate->view()->installEventFilter( const_cast<QObject*>(qobject_cast<const QObject*>(this)));
connect(comboDelegate, SIGNAL(highlighted(QString)), this, SLOT(testActivation(QString)));
connect(comboDelegate->lineEdit(), SIGNAL(editingFinished()), this, SLOT(testActivation()));
connect(comboDelegate, SIGNAL(activated(QString)), this, SLOT(fakeActivation()));
currCombo.comboEditor = comboDelegate;
currCombo.currRow = index.row();
currCombo.model = const_cast<QAbstractItemModel*>(index.model());
// Current display of things on Gnome3 looks like shit, so
// let`s fix that.
if (isGnome3Session()) {
QPalette p;
p.setColor(QPalette::Window, QColor(Qt::white));
p.setColor(QPalette::Base, QColor(Qt::white));
comboDelegate->lineEdit()->setPalette(p);
comboDelegate->setPalette(p);
}
return comboDelegate;
}
示例2: setEditorData
void ComboBoxDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
{
QComboBox *c = qobject_cast<QComboBox *>(editor);
QString data = index.model()->data(index, Qt::DisplayRole).toString();
int i = c->findText(data);
if (i != -1)
c->setCurrentIndex(i);
else
c->setEditText(data);
c->lineEdit()->setSelection(0, c->lineEdit()->text().length());
}
示例3: isValid
/**
* Returns true if all relevant children of the widget managed by this
* instance are valid AND if #isOtherValid() returns true; otherwise returns
* false. Disabled children and children without validation
* are skipped and don't affect the result.
*
* The method emits the #isValidRequested() signal before calling
* #isOtherValid(), thus giving someone an opportunity to affect its result by
* calling #setOtherValid() from the signal handler. Note that #isOtherValid()
* returns true by default, until #setOtherValid( false ) is called.
*
* @note If #isOtherValid() returns true this method does a hierarchy scan, so
* it's a good idea to store the returned value in a local variable if needed
* more than once within a context of a single check.
*/
bool QIWidgetValidator::isValid() const
{
// wgt is null, we assume we're valid
if (!mWidget)
return true;
QIWidgetValidator *that = const_cast <QIWidgetValidator *> (this);
emit that->isValidRequested (that);
if (!isOtherValid())
return false;
QValidator::State state = QValidator::Acceptable;
foreach (Watched watched, mWatched)
{
if (watched.widget->inherits ("QLineEdit"))
{
QLineEdit *le = ((QLineEdit *) watched.widget);
Assert (le->validator());
if (!le->validator() || !le->isEnabled())
continue;
QString text = le->text();
int pos;
state = le->validator()->validate (text, pos);
}
else if (watched.widget->inherits ("QComboBox"))
{
QComboBox *cb = ((QComboBox *) watched.widget);
Assert (cb->validator());
if (!cb->validator() || !cb->isEnabled())
continue;
QString text = cb->lineEdit()->text();
int pos;
state = cb->lineEdit()->validator()->validate (text, pos);
}
if (state != QValidator::Acceptable)
{
that->mLastInvalid = watched;
that->mLastInvalid.state = state;
return false;
}
}
/* reset last invalid */
that->mLastInvalid = Watched();
return true;
}
示例4:
QWidget *EventsWindow::createTagsInput()
{
QComboBox *tagInput = new QComboBox;
tagInput->setEditable(true);
tagInput->setInsertPolicy(QComboBox::NoInsert);
#if QT_VERSION >= 0x040700
tagInput->lineEdit()->setPlaceholderText(tr("Type or select a tag to filter"));
#endif
return tagInput;
}
示例5: NewWidget
QWidget *OBSPropertiesView::AddList(obs_property_t prop)
{
const char *name = obs_property_name(prop);
QComboBox *combo = new QComboBox();
obs_combo_type type = obs_property_list_type(prop);
obs_combo_format format = obs_property_list_format(prop);
size_t count = obs_property_list_item_count(prop);
int idx = -1;
for (size_t i = 0; i < count; i++)
AddComboItem(combo, prop, format, i);
if (type == OBS_COMBO_TYPE_EDITABLE)
combo->setEditable(true);
if (format == OBS_COMBO_FORMAT_INT) {
int val = (int)obs_data_getint(settings, name);
string valString = to_string(val);
idx = combo->findData(QT_UTF8(valString.c_str()));
} else if (format == OBS_COMBO_FORMAT_FLOAT) {
double val = obs_data_getdouble(settings, name);
string valString = to_string(val);
idx = combo->findData(QT_UTF8(valString.c_str()));
} else if (format == OBS_COMBO_FORMAT_STRING) {
const char *val = obs_data_getstring(settings, name);
if (type == OBS_COMBO_TYPE_EDITABLE)
combo->lineEdit()->setText(val);
else
idx = combo->findData(QT_UTF8(val));
}
if (type == OBS_COMBO_TYPE_EDITABLE)
return NewWidget(prop, combo,
SIGNAL(editTextChanged(const QString &)));
if (idx != -1)
combo->setCurrentIndex(idx);
WidgetInfo *info = new WidgetInfo(this, prop, combo);
connect(combo, SIGNAL(currentIndexChanged(int)), info,
SLOT(ControlChanged()));
children.push_back(std::move(unique_ptr<WidgetInfo>(info)));
/* trigger a settings update if the index was not found */
if (idx == -1)
info->ControlChanged();
return combo;
}
示例6: setEditorData
void QUDefaultDelegate::setEditorData(
QWidget *editor,
const QModelIndex &index) const
{
QString value = index.model()->data(index, Qt::DisplayRole).toString();
QComboBox *comboBox = static_cast<QComboBox*>(editor);
if(QString::compare(value, N_A, Qt::CaseSensitive) == 0)
value = "";
comboBox->setEditText(value);
comboBox->lineEdit()->selectAll();
}
示例7: createEditor
QWidget* ComboBoxDelegate::createEditor(QWidget* parent, const QStyleOptionViewItem& option, const QModelIndex& index) const
{
QComboBox *comboDelegate = new QComboBox(parent);
comboDelegate->setModel(model);
comboDelegate->setEditable(true);
comboDelegate->setAutoCompletion(true);
comboDelegate->setAutoCompletionCaseSensitivity(Qt::CaseInsensitive);
comboDelegate->completer()->setCompletionMode(QCompleter::PopupCompletion);
comboDelegate->lineEdit()->installEventFilter( const_cast<QObject*>(qobject_cast<const QObject*>(this)));
comboDelegate->view()->installEventFilter( const_cast<QObject*>(qobject_cast<const QObject*>(this)));
connect(comboDelegate, SIGNAL(highlighted(QString)), this, SLOT(testActivation(QString)));
currCombo.comboEditor = comboDelegate;
currCombo.currRow = index.row();
currCombo.model = const_cast<QAbstractItemModel*>(index.model());
return comboDelegate;
}
示例8: setEditorData
void CPropertiesDelegate::setEditorData( QWidget *pwidgetEditor, const QModelIndex &modelindex ) const
{
HODBCINSTPROPERTY pProperty = modelindex.model()->data( modelindex, Qt::EditRole ).value<HODBCINSTPROPERTY>();
switch ( pProperty->nPromptType )
{
case ODBCINST_PROMPTTYPE_LABEL:
break;
case ODBCINST_PROMPTTYPE_LISTBOX:
{
QComboBox *pComboBox = static_cast<QComboBox*>( pwidgetEditor );
pComboBox->setCurrentIndex( pComboBox->findText( pProperty->szValue, Qt::MatchExactly ) );
}
break;
case ODBCINST_PROMPTTYPE_COMBOBOX:
{
QComboBox *pComboBox = static_cast<QComboBox*>( pwidgetEditor );
pComboBox->lineEdit()->setText( pProperty->szValue );
}
break;
case ODBCINST_PROMPTTYPE_FILENAME:
{
CFileSelector *pFileSelector = static_cast<CFileSelector*>( pwidgetEditor );
pFileSelector->setText( pProperty->szValue );
}
break;
case ODBCINST_PROMPTTYPE_HIDDEN:
break;
default: // PROMPTTYPE_TEXTEDIT and PROMPTTYPE_TEXTEDIT_PASSWORD
{
QLineEdit *pLineEdit = static_cast<QLineEdit*>( pwidgetEditor );
pLineEdit->setText( pProperty->szValue );
}
break;
}
}
示例9: getUserCommandParams
bool WulforUtil::getUserCommandParams(const UserCommand& uc, StringMap& params) {
StringList names;
string::size_type i = 0, j = 0;
const string cmd_str = uc.getCommand();
while((i = cmd_str.find("%[line:", i)) != string::npos) {
if ((j = cmd_str.find("]", (i += 7))) == string::npos)
break;
names.push_back(cmd_str.substr(i, j - i));
i = j + 1;
}
if (names.empty())
return true;
QDialog dlg(MainWindow::getInstance());
dlg.setWindowTitle(_q(uc.getDisplayName().back()));
QVBoxLayout *vlayout = new QVBoxLayout(&dlg);
std::vector<std::function<void ()> > valueFs;
for (const auto &name : names) {
QString caption = _q(name);
if (uc.adc()) {
caption.replace("\\\\", "\\");
caption.replace("\\s", " ");
}
int combo_sel = -1;
QString combo_caption = caption;
combo_caption.replace("//", "\t");
QStringList combo_values = combo_caption.split("/");
if (combo_values.size() > 2) {
QString tmp = combo_values.takeFirst();
bool isNumber = false;
combo_sel = combo_values.takeFirst().toInt(&isNumber);
if (!isNumber || combo_sel >= combo_values.size())
combo_sel = -1;
else
caption = tmp;
}
QGroupBox *box = new QGroupBox(caption, &dlg);
QHBoxLayout *hlayout = new QHBoxLayout(box);
if (combo_sel >= 0) {
for (auto &val : combo_values)
val.replace("\t", "/");
QComboBox *combo = new QComboBox(box);
hlayout->addWidget(combo);
combo->addItems(combo_values);
combo->setEditable(true);
combo->setCurrentIndex(combo_sel);
combo->lineEdit()->setReadOnly(true);
valueFs.push_back([combo, name, ¶ms] {
params["line:" + name] = combo->currentText().toStdString();
});
} else {
QLineEdit *line = new QLineEdit(box);
hlayout->addWidget(line);
valueFs.push_back([line, name, ¶ms] {
params["line:" + name] = line->text().toStdString();
});
}
vlayout->addWidget(box);
}
QDialogButtonBox *buttonBox = new QDialogButtonBox(&dlg);
buttonBox->setOrientation(Qt::Horizontal);
buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
vlayout->addWidget(buttonBox);
dlg.setFixedHeight(vlayout->sizeHint().height());
connect(buttonBox, SIGNAL(accepted()), &dlg, SLOT(accept()));
connect(buttonBox, SIGNAL(rejected()), &dlg, SLOT(reject()));
if (dlg.exec() != QDialog::Accepted)
return false;
for (const auto &fs : valueFs)
fs();
return true;
}
示例10: NewWidget
QWidget *OBSPropertiesView::AddList(obs_property_t *prop, bool &warning)
{
const char *name = obs_property_name(prop);
QComboBox *combo = new QComboBox();
obs_combo_type type = obs_property_list_type(prop);
obs_combo_format format = obs_property_list_format(prop);
size_t count = obs_property_list_item_count(prop);
int idx = -1;
for (size_t i = 0; i < count; i++)
AddComboItem(combo, prop, format, i);
if (type == OBS_COMBO_TYPE_EDITABLE)
combo->setEditable(true);
string value = from_obs_data(settings, name, format);
if (format == OBS_COMBO_FORMAT_STRING &&
type == OBS_COMBO_TYPE_EDITABLE)
combo->lineEdit()->setText(QT_UTF8(value.c_str()));
else
idx = combo->findData(QT_UTF8(value.c_str()));
if (type == OBS_COMBO_TYPE_EDITABLE)
return NewWidget(prop, combo,
SIGNAL(editTextChanged(const QString &)));
if (idx != -1)
combo->setCurrentIndex(idx);
if (obs_data_has_autoselect_value(settings, name)) {
string autoselect =
from_obs_data_autoselect(settings, name, format);
int id = combo->findData(QT_UTF8(autoselect.c_str()));
if (id != -1 && id != idx) {
QString actual = combo->itemText(id);
QString selected = combo->itemText(idx);
QString combined = QTStr(
"Basic.PropertiesWindow.AutoSelectFormat");
combo->setItemText(idx,
combined.arg(selected).arg(actual));
}
}
QAbstractItemModel *model = combo->model();
warning = idx != -1 &&
model->flags(model->index(idx, 0)) == Qt::NoItemFlags;
WidgetInfo *info = new WidgetInfo(this, prop, combo);
connect(combo, SIGNAL(currentIndexChanged(int)), info,
SLOT(ControlChanged()));
children.push_back(std::move(unique_ptr<WidgetInfo>(info)));
/* trigger a settings update if the index was not found */
if (idx == -1)
info->ControlChanged();
return combo;
}
示例11: createToolBar
//.........这里部分代码省略.........
mToolBar->addSeparator();
//
// align group button
QToolButton *alignButton = new QToolButton(mToolBar);
alignButton->setIcon(findIcon("tool-align.png"));
alignButton->setPopupMode(QToolButton::InstantPopup);
alignButton->setToolTip(tr("Alignment"));
mToolBar->addWidget(alignButton);
//Grid alignment
action = new QAction(findIcon("tool-align-grid.png"), tr("Grid alignment"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("5", "Grid alignment")));
alignButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onGridAlignment()));
// tuple alignment
action = new QAction(findIcon("tool-align-tuple.png"), tr("Tuple alignment"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("6", "Tuple alignment")));
alignButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onTupleAlignment()));
//Vertical alignment
action = new QAction(findIcon("tool-align-vert.png"), tr("Vertical alignment"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("7", "Vertical alignment")));
alignButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onVerticalAlignment()));
//Horizontal alignment
action = new QAction(findIcon("tool-align-horz.png"), tr("Horizontal alignment"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("8", "Horizontal alignment")));
alignButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onHorizontalAlignment()));
// selection group button
QToolButton *selectButton = new QToolButton(mToolBar);
selectButton->setIcon(findIcon("tool-select-group.png"));
selectButton->setPopupMode(QToolButton::InstantPopup);
selectButton->setToolTip(tr("Selection group"));
mToolBar->addWidget(selectButton);
// input/output selection
action = new QAction(findIcon("tool-select-inout.png"), tr("Select input/output"), mToolBar);
action->setCheckable(false);
selectButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onSelectInputOutput()));
// sbgraph selection
action = new QAction(findIcon("tool-select-subgraph.png"), tr("Select subgraph"), mToolBar);
action->setCheckable(false);
selectButton->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onSelectSubgraph()));
mToolBar->addSeparator();
action = new QAction(findIcon("tool-export-image.png"), tr("Export image"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("0", "Export image")));
mToolBar->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onExportImage()));
//
mToolBar->addSeparator();
//
//Zoom in
action = new QAction(findIcon("tool-zoom-in.png"), tr("Zoom in"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("+", "Zoom in")));
mToolBar->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onZoomIn()));
//Scale combobox
QComboBox* b = new QComboBox(mToolBar);
b->setEditable(true);
b->setInsertPolicy(QComboBox::NoInsert);
b->addItems(SCgWindow::mScales);
b->setCurrentIndex(mScales.indexOf("100"));
mZoomFactorLine = b->lineEdit();
mZoomFactorLine->setInputMask("D90%");
mToolBar->addWidget(b);
connect(mZoomFactorLine, SIGNAL(textChanged(const QString&)), mView, SLOT(setScale(const QString&)));
connect(mView, SIGNAL(scaleChanged(qreal)), this, SLOT(onViewScaleChanged(qreal)));
//Zoom out
action = new QAction(findIcon("tool-zoom-out.png"), tr("Zoom out"), mToolBar);
action->setCheckable(false);
action->setShortcut(QKeySequence(tr("-", "Zoom out")));
mToolBar->addAction(action);
connect(action, SIGNAL(triggered()), this, SLOT(onZoomOut()));
mToolBar->setWindowTitle(tr("SCg Tools"));
mToolBar->setObjectName("SCgMainToolBar");
//! @bug toolbar state is not saved
mToolBar->setMovable(false);
}
示例12: on_action_Get_samples_triggered
void MainWindow::on_action_Get_samples_triggered()
{
uint64_t samplerate;
QString s;
GSList *devs = NULL;
int opt_dev;
struct sr_dev *dev;
QComboBox *n = ui->comboBoxNumSamples;
opt_dev = 0; /* FIXME */
/*
* The number of samples to get is a drop-down list, but you can also
* manually enter a value. If the latter, we have to get the value from
* the lineEdit object, otherwise via itemData() and the list index.
*/
if (n->lineEdit() != NULL) {
limit_samples = n->lineEdit()->text().toLongLong();
} else {
limit_samples = n->itemData(n->currentIndex()).toLongLong();
}
samplerate = ui->comboBoxSampleRate->itemData(
ui->comboBoxSampleRate->currentIndex()).toLongLong();
/* TODO: Sanity checks. */
/* TODO: Assumes unitsize == 1. */
if (!(sample_buffer = (uint8_t *)malloc(limit_samples))) {
/* TODO: Error handling. */
return;
}
sr_session_new();
sr_session_datafeed_callback_add(datafeed_in);
devs = sr_dev_list();
dev = (struct sr_dev *)g_slist_nth_data(devs, opt_dev);
/* Set the number of samples we want to get from the device. */
if (dev->driver->dev_config_set(dev->driver_index,
SR_HWCAP_LIMIT_SAMPLES, &limit_samples) != SR_OK) {
qDebug("Failed to set sample limit.");
sr_session_destroy();
return;
}
if (sr_session_dev_add(dev) != SR_OK) {
qDebug("Failed to use device.");
sr_session_destroy();
return;
}
/* Set the samplerate. */
if (dev->driver->dev_config_set(dev->driver_index,
SR_HWCAP_SAMPLERATE, &samplerate) != SR_OK) {
qDebug("Failed to set samplerate.");
sr_session_destroy();
return;
};
if (dev->driver->dev_config_set(dev->driver_index,
SR_HWCAP_PROBECONFIG, (char *)dev->probes) != SR_OK) {
qDebug("Failed to configure probes.");
sr_session_destroy();
return;
}
if (sr_session_start() != SR_OK) {
qDebug("Failed to start session.");
sr_session_destroy();
return;
}
progress = new QProgressDialog("Getting samples from logic analyzer...",
"Abort", 0, limit_samples, this);
progress->setWindowModality(Qt::WindowModal);
progress->setMinimumDuration(100);
sr_session_run();
sr_session_stop();
sr_session_destroy();
for (int i = 0; i < getNumChannels(); ++i) {
channelForms[i]->setNumSamples(limit_samples);
// channelForms[i]->setSampleStart(0);
// channelForms[i]->setSampleEnd(limit_samples);
/* If any of the scale factors change, update all of them.. */
connect(channelForms[i], SIGNAL(scaleFactorChanged(float)),
w, SLOT(updateScaleFactors(float)));
channelForms[i]->generatePainterPath();
// channelForms[i]->update();
}
setNumSamples(limit_samples);
//.........这里部分代码省略.........
示例13: SwitchLayout
//.........这里部分代码省略.........
PopupPositionQt preferredPos;
if (m_parentEdit->inherits("MythLineEdit"))
{
MythLineEdit *par = (MythLineEdit *)m_parentEdit;
preferredPos = par->getPopupPosition();
}
else if (m_parentEdit->inherits("MythRemoteLineEdit"))
{
MythRemoteLineEdit *par = (MythRemoteLineEdit *)m_parentEdit;
preferredPos = par->getPopupPosition();
}
else if (m_parentEdit->inherits("MythComboBox"))
{
MythComboBox *par = (MythComboBox *)m_parentEdit;
preferredPos = par->getPopupPosition();
}
else
{
preferredPos = VKQT_POSCENTERDIALOG;
}
if (preferredPos == VKQT_POSBELOWEDIT)
{
if (pw->mapTo(tlw, QPoint(0,pwg.height() + m_popupHeight + 5)).y()
< tlwg.height())
{
newpos = QPoint(pwg.width() / 2 - m_popupWidth / 2, pwg.height() + 5);
}
else
{
newpos = QPoint(pwg.width() / 2 - m_popupWidth / 2, - 5 - m_popupHeight);
}
}
else if (preferredPos == VKQT_POSABOVEEDIT)
{
if (pw->mapTo(tlw, QPoint(0, - m_popupHeight - 5)).y()
> 0)
{
newpos = QPoint(pwg.width() / 2 - m_popupWidth / 2, - 5 - m_popupHeight);
}
else
{
newpos = QPoint(pwg.width() / 2 - m_popupWidth / 2, pwg.height() + 5);
}
}
else if (preferredPos == VKQT_POSTOPDIALOG)
{
newpos = QPoint(tlwg.width() / 2 - m_popupWidth / 2, 5);
this->move(newpos);
}
else if (preferredPos == VKQT_POSBOTTOMDIALOG)
{
newpos = QPoint(tlwg.width() / 2 - m_popupWidth / 2,
tlwg.height() - 5 - m_popupHeight);
this->move(newpos);
}
else if (preferredPos == VKQT_POSCENTERDIALOG)
{
newpos = QPoint(tlwg.width() / 2 - m_popupWidth / 2,
tlwg.height() / 2 - m_popupHeight / 2);
this->move(newpos);
}
if (preferredPos == VKQT_POSABOVEEDIT || preferredPos == VKQT_POSBELOWEDIT)
{
int delx = pw->mapTo(tlw,newpos).x() + m_popupWidth - tlwg.width() + 5;
newpos = QPoint(newpos.x() - (delx > 0 ? delx : 0), newpos.y());
delx = pw->mapTo(tlw, newpos).x();
newpos = QPoint(newpos.x() - (delx < 0 ? delx : 0), newpos.y());
int xbase, width, ybase, height;
float wmult, hmult;
GetMythUI()->GetScreenSettings(xbase, width, wmult, ybase, height, hmult);
newpos.setX(newpos.x() - xbase);
newpos.setY(newpos.y() - ybase);
this->move( pw->mapToGlobal( newpos ) );
}
// find the UIKeyboardType
m_keyboard = getUIKeyboardType("keyboard");
if (!m_keyboard)
{
VERBOSE(VB_IMPORTANT, LOC_ERR +
"Cannot find the UIKeyboardType in your theme");
reject();
return;
}
if (m_parentEdit->inherits("QComboBox"))
{
QComboBox *combo = (QComboBox *) m_parentEdit;
m_keyboard->SetEdit(combo->lineEdit());
}
else
m_keyboard->SetEdit(m_parentEdit);
m_keyboard->SetParentDialog(this);
}