24 #include <QStringListModel>
61 for (
int i = 0; i < mListWidget->
count(); ++i )
75 if ( i.second == mLineEdit->
text() )
93 if (
config(
"AllowMulti" ).toBool() )
97 else if (
config(
"UseCompleter" ).toBool() )
110 mComboBox = qobject_cast<
QComboBox*>( editor );
111 mListWidget = qobject_cast<
QListWidget*>( editor );
112 mLineEdit = qobject_cast<
QLineEdit*>( editor );
117 if (
config(
"AllowNull" ).toBool() )
124 mComboBox->
addItem( element.second, element.first );
129 else if ( mListWidget )
135 item->
setData( Qt::UserRole, element.first );
137 mListWidget->addItem( item );
141 else if ( mLineEdit )
152 mLineEdit->setCompleter( completer );
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
QString & append(QChar ch)
QString & prepend(QChar ch)
QString join(const QString &separator) const
QString tr(const char *sourceText, const char *disambiguation, int n)
void addItem(const QString &text, const QVariant &userData)
Lineedit with builtin clear button.
QVariant itemData(int index, int role) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.