QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
46 v = mCheckBox->isChecked() ?
config( QStringLiteral(
"CheckedState" ) ) :
config( QStringLiteral(
"UncheckedState" ) );
69 return fieldName +
" IS NULL";
72 return fieldName +
" IS NOT NULL";
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 QString str = QStringLiteral(
"%1 = '%3'" )
134 exp.replace(
'\'', QLatin1String(
"''" ) )
139 void QgsCheckboxSearchWidgetWrapper::stateChanged(
int )
143 mCheckBox->setTristate(
false );
144 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 );
QgsFields fields() const FINAL
Returns the list of fields of this layer.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
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
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes)
QgsField at(int i) const
Gets field at particular index (must be in range 0..N-1)