46 v = mCheckBox->isChecked() ?
config( QStringLiteral(
"CheckedState" ) ) :
config( QStringLiteral(
"UncheckedState" ) );
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:
87 return fieldName +
'=' + v.toString();
89 return fieldName +
"<>" + v.toString();
96 return fieldName +
"='" + v.toString() +
'\'';
98 return fieldName +
"<>'" + v.toString() +
'\'';
110 whileBlocking( mCheckBox )->setCheckState( Qt::PartiallyChecked );
118 mCheckBox->setEnabled( enabled );
132 const QString
str = QStringLiteral(
"%1 = '%3'" )
134 exp.replace(
'\'', QLatin1String(
"''" ) )
139 void QgsCheckboxSearchWidgetWrapper::stateChanged(
int )
143 mCheckBox->setTristate(
false );
144 const QString exp =
value().toString();
153 QCheckBox *
c =
new QCheckBox( parent );
154 c->setChecked( Qt::PartiallyChecked );
160 mCheckBox = qobject_cast<QCheckBox *>( editor );
164 mCheckBox->setChecked( Qt::PartiallyChecked );
165 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.