46 v = mCheckBox->isChecked() ?
config( QStringLiteral(
"CheckedState" ),
true ) :
config( QStringLiteral(
"UncheckedState" ),
false );
69 return fieldName +
" IS NULL";
72 return fieldName +
" IS NOT NULL";
74 const QVariant v =
value();
82 case QVariant::Double:
83 case QVariant::LongLong:
84 case QVariant::ULongLong:
88 return fieldName +
'=' + v.toString();
90 return fieldName +
"<>" + v.toString();
97 return fieldName +
"='" + v.toString() +
'\'';
99 return fieldName +
"<>'" + v.toString() +
'\'';
111 whileBlocking( mCheckBox )->setCheckState( Qt::PartiallyChecked );
119 mCheckBox->setEnabled( enabled );
133 const QString
str = QStringLiteral(
"%1 = '%3'" )
135 exp.replace(
'\'', QLatin1String(
"''" ) )
140void QgsCheckboxSearchWidgetWrapper::stateChanged(
int )
144 mCheckBox->setTristate(
false );
145 const QString exp =
value().toString();
154 QCheckBox *
c =
new QCheckBox( parent );
155 c->setChecked( Qt::PartiallyChecked );
161 mCheckBox = qobject_cast<QCheckBox *>( editor );
165 mCheckBox->setChecked( Qt::PartiallyChecked );
166 connect( mCheckBox, &QCheckBox::stateChanged,
this, &QgsCheckboxSearchWidgetWrapper::stateChanged );
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes)
QgsField at(int i) const
Returns the field at particular index (must be in range 0..N-1).
Represents a vector layer which manages a vector based data sets.
QgsFields fields() const FINAL
Returns the list of fields of this layer.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.