25 #include <QStringListModel>    30     , mComboBox( nullptr )
    31     , mListWidget( nullptr )
    32     , mLineEdit( nullptr )
    67     for ( 
int i = 0; i < mListWidget->
count(); ++i )
    81       if ( i.second == mLineEdit->
text() )
   109     return fieldName + 
" IS NULL";
   111     return fieldName + 
" IS NOT NULL";
   121     case QVariant::Double:
   122     case QVariant::LongLong:
   123     case QVariant::ULongLong:
   126         return fieldName + 
'=' + v.
toString();
   128         return fieldName + 
"<>" + v.
toString();
   135         return fieldName + 
"='" + v.
toString() + 
'\'';
   137         return fieldName + 
"<>'" + v.
toString() + 
'\'';
   206   if ( exp == nullValue )
   222   if ( 
config( 
"AllowMulti" ).toBool() )
   226   else if ( 
config( 
"UseCompleter" ).toBool() )
   240   mComboBox = qobject_cast<
QComboBox*>( editor );
   241   mListWidget = qobject_cast<
QListWidget*>( editor );
   242   mLineEdit = qobject_cast<
QLineEdit*>( editor );
   247     if ( 
config( 
"AllowNull" ).toBool() )
   254       mComboBox->
addItem( element.second, element.first );
   259   else if ( mListWidget )
   265       item->
setData( Qt::UserRole, element.first );
   267       mListWidget->addItem( item );
   271   else if ( mLineEdit )
   282     mLineEdit->setCompleter( completer );
 
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
QString & append(QChar ch)
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes) 
QString & prepend(QChar ch)
QString join(const QString &separator) const
QString tr(const char *sourceText, const char *disambiguation, int n)
const QgsField & at(int i) const
Get field at particular index (must be in range 0..N-1) 
QgsFields fields() const
Returns the list of fields of this layer. 
void addItem(const QString &text, const QVariant &userData)
const char * name() const
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
QVariant itemData(int index, int role) const
QString & replace(int position, int n, QChar after)
QVariant value(const QString &key, const QVariant &defaultValue) 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. 
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const