27 , mCheckBox( nullptr )
70 return fieldName +
" IS NULL";
73 return fieldName +
" IS NOT NULL";
83 case QVariant::Double:
84 case QVariant::LongLong:
85 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 );
139 void QgsCheckboxSearchWidgetWrapper::stateChanged(
int )
160 mCheckBox = qobject_cast<
QCheckBox*>( editor );
164 mCheckBox->
setChecked( Qt::PartiallyChecked );
165 connect( mCheckBox, SIGNAL( stateChanged(
int ) ),
this, SLOT( stateChanged(
int ) ) );
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes)
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.
const char * name() const
QString & replace(int position, int n, QChar after)
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
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.
QVariant::Type type() const
Gets variant type of the field as it will be retrieved from data source.
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const