36 v = mComboBox->currentData();
40 v = QVariant(
field().type() );
55 return new QComboBox( parent );
60 mComboBox = qobject_cast<QComboBox *>( editor );
65 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
75 void QgsValueMapWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
85 if ( mComboBox->findData( v ) == -1 )
87 if (
value.isNull( ) )
93 mComboBox->addItem( QString( v ).prepend(
'(' ).append(
')' ), v );
96 mComboBox->setCurrentIndex( mComboBox->findData( v ) );
static QString nullRepresentation()
This string is used to represent the value NULL throughout QGIS.
static void populateComboBox(QComboBox *comboBox, const QVariantMap &configuration, bool skipNull)
Populates a comboBox with the appropriate entries based on a value map configuration.
Represents a vector layer which manages a vector based data sets.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.