QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
29 return mComboBox->currentData();
39 return new QComboBox( parent );
44 mComboBox = qobject_cast<QComboBox *>( editor );
52 for (
int i = 0; i < categories.size(); i++ )
54 QString label = categories[i].label();
55 QString
value = categories[i].value().toString();
56 if ( label.isEmpty() )
59 mComboBox->addItem( label,
value );
63 connect( mComboBox,
static_cast<void ( QComboBox::* )(
int )
>( &QComboBox::currentIndexChanged ),
73 void QgsClassificationWidgetWrapper::updateValues(
const QVariant &value,
const QVariantList & )
75 mComboBox->setCurrentIndex( mComboBox->findData(
value ) );
const QgsCategoryList & categories() const
Returns a list of all categories recognized by the renderer.
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
QList< QgsRendererCategory > QgsCategoryList
QgsFeatureRenderer * renderer()
Returns renderer.