33 value = mComboBox->currentData();
48 return new QComboBox( parent );
53 mComboBox = qobject_cast<QComboBox *>( editor );
57 QStringList enumValues;
60 Q_FOREACH (
const QString &s, enumValues )
62 mComboBox->addItem( s, s );
64 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
78 mComboBox->setCurrentIndex( mComboBox->findData( value ) );
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
QgsVectorDataProvider * dataProvider() override
Returns the layer's data provider.
virtual void enumValues(int index, QStringList &enumList) const
Returns the possible enum values of an attribute.
Represents a vector layer which manages a vector based data sets.