17#include "moc_qgscheckboxsearchwidgetwrapper.cpp" 
   50    if ( fieldType == QMetaType::Type::Bool )
 
   52      v = mCheckBox->isChecked();
 
   56      v = mCheckBox->isChecked() ? 
config( QStringLiteral( 
"CheckedState" ), 
true ) : 
config( QStringLiteral( 
"UncheckedState" ), 
false );
 
 
   81    return fieldName + 
" IS NULL";
 
   84    return fieldName + 
" IS NOT NULL";
 
   86  const QVariant v = 
value();
 
   92    case QMetaType::Type::Int:
 
   93    case QMetaType::Type::UInt:
 
   94    case QMetaType::Type::Double:
 
   95    case QMetaType::Type::LongLong:
 
   96    case QMetaType::Type::ULongLong:
 
   97    case QMetaType::Type::Bool:
 
  100        return fieldName + 
'=' + v.toString();
 
  102        return fieldName + 
"<>" + v.toString();
 
  109        return fieldName + 
"='" + v.toString() + 
'\'';
 
  111        return fieldName + 
"<>'" + v.toString() + 
'\'';
 
 
  123    whileBlocking( mCheckBox )->setCheckState( Qt::PartiallyChecked );
 
 
  131    mCheckBox->setEnabled( enabled );
 
 
  149    case QMetaType::Type::Bool:
 
  150    case QMetaType::Type::Int:
 
  151    case QMetaType::Type::UInt:
 
  152    case QMetaType::Type::LongLong:
 
  153    case QMetaType::Type::ULongLong:
 
  154    case QMetaType::Type::Double:
 
  159      str = QStringLiteral( 
"%1 = '%2'" )
 
 
  166void QgsCheckboxSearchWidgetWrapper::stateChanged( 
int )
 
  170    mCheckBox->setTristate( 
false );
 
  173    const QVariant currentValue = 
value();
 
  174    if ( currentValue.userType() == QMetaType::Type::Bool )
 
  176      exp = currentValue.toBool() ? QStringLiteral( 
"TRUE" ) : QStringLiteral( 
"FALSE" );
 
  180      exp = currentValue.toString();
 
  191  QCheckBox *
c = 
new QCheckBox( parent );
 
  192  c->setChecked( Qt::PartiallyChecked );
 
 
  198  mCheckBox = qobject_cast<QCheckBox *>( editor );
 
  202    mCheckBox->setChecked( Qt::PartiallyChecked );
 
  203    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 dataset.
 
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.