34 v = mComboBox->currentData();
37 v = QVariant(
field().type() );
52 return new QComboBox( parent );
57 mComboBox = qobject_cast<QComboBox *>( editor );
62 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
81 mComboBox->setCurrentIndex( mComboBox->findData( v ) );
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
Represents a vector layer which manages a vector based data sets.
static void populateComboBox(QComboBox *comboBox, const QVariantMap &configuration, bool skipNull)
Populates a comboBox with the appropriate entries based on a value map configuration.