23 , mComboBox( nullptr )
44 mComboBox = qobject_cast<
QComboBox*>( editor );
52 for (
int i = 0; i < categories.
size(); i++ )
54 QString label = categories[i].label();
59 mComboBox->
addItem( label, value );
const QgsCategoryList & categories() const
void addItem(const QString &text, const QVariant &userData)
QgsFeatureRendererV2 * rendererV2()
Return renderer V2.
QVariant itemData(int index, int role) const
QgsSignalBlocker< Object > whileBlocking(Object *object)
Temporarily blocks signals from a QObject while calling a single method from the object.
int findData(const QVariant &data, int role, QFlags< Qt::MatchFlag > flags) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.