QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Model for layer style categories. More...
#include <qgsmaplayerstylecategoriesmodel.h>
Public Member Functions | |
QgsMapLayerStyleCategoriesModel (QgsMapLayerType type, QObject *parent=nullptr) | |
Constructor for QgsMapLayerStyleCategoriesModel, for the specified layer type. More... | |
QgsMapLayer::StyleCategories | categories () const |
Returns the categories as defined in the model. More... | |
int | columnCount (const QModelIndex &=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role) const override |
Qt::ItemFlags | flags (const QModelIndex &) const override |
int | rowCount (const QModelIndex &=QModelIndex()) const override |
void | setCategories (QgsMapLayer::StyleCategories categories) |
Reset the model data. More... | |
bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
void | setShowAllCategories (bool showAll) |
Defines if the model should list the AllStyleCategories entry. More... | |
Model for layer style categories.
Definition at line 34 of file qgsmaplayerstylecategoriesmodel.h.
|
explicit |
Constructor for QgsMapLayerStyleCategoriesModel, for the specified layer type.
Definition at line 19 of file qgsmaplayerstylecategoriesmodel.cpp.
QgsMapLayer::StyleCategories QgsMapLayerStyleCategoriesModel::categories | ( | ) | const |
Returns the categories as defined in the model.
Definition at line 54 of file qgsmaplayerstylecategoriesmodel.cpp.
|
override |
Definition at line 74 of file qgsmaplayerstylecategoriesmodel.cpp.
|
override |
Definition at line 79 of file qgsmaplayerstylecategoriesmodel.cpp.
|
override |
Definition at line 317 of file qgsmaplayerstylecategoriesmodel.cpp.
|
override |
Definition at line 66 of file qgsmaplayerstylecategoriesmodel.cpp.
void QgsMapLayerStyleCategoriesModel::setCategories | ( | QgsMapLayer::StyleCategories | categories | ) |
Reset the model data.
Definition at line 44 of file qgsmaplayerstylecategoriesmodel.cpp.
|
override |
Definition at line 292 of file qgsmaplayerstylecategoriesmodel.cpp.
void QgsMapLayerStyleCategoriesModel::setShowAllCategories | ( | bool | showAll | ) |
Defines if the model should list the AllStyleCategories entry.
Definition at line 59 of file qgsmaplayerstylecategoriesmodel.cpp.