26 #include <QStringListModel> 66 return fieldName +
" IS NULL";
68 return fieldName +
" IS NOT NULL";
78 case QVariant::Double:
79 case QVariant::LongLong:
80 case QVariant::ULongLong:
83 return fieldName +
'=' + v.toString();
85 return fieldName +
"<>" + v.toString();
92 return fieldName +
"='" + v.toString() +
'\'';
94 return fieldName +
"<>'" + v.toString() +
'\'';
114 mWidget->setEnabled( enabled );
125 if ( !value.isValid() )
146 if ( exp == nullValue )
152 str = QStringLiteral(
"%1 = '%3'" )
154 exp.replace(
'\'', QLatin1String(
"''" ) )
180 if (
config( QStringLiteral(
"FilterFields" ), QVariant() ).isValid() )
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes)
This class is a composition of two QSettings instances:
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1)
Map canvas is a class for displaying all GIS data types on a canvas.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
Q_INVOKABLE QgsRelation relation(const QString &id) const
Gets access to a relation by its id.
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
QgsRelationManager relationManager
static QgsProject * instance()
Returns the QgsProject singleton instance.
Represents a vector layer which manages a vector based data sets.