QGIS API Documentation  3.14.0-Pi (9f7028fd23)
Public Member Functions | List of all members
QgsMapLayerStyleCategoriesModel Class Reference

#include <qgsmaplayerstylecategoriesmodel.h>

Inheritance diagram for QgsMapLayerStyleCategoriesModel:
Inheritance graph
[legend]

Public Member Functions

 QgsMapLayerStyleCategoriesModel (QObject *parent=nullptr)
 constructor 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...
 

Detailed Description

Model for layer style categories

Note
This class is not a part of public API
Since
QGIS 3.14

Definition at line 34 of file qgsmaplayerstylecategoriesmodel.h.

Constructor & Destructor Documentation

◆ QgsMapLayerStyleCategoriesModel()

QgsMapLayerStyleCategoriesModel::QgsMapLayerStyleCategoriesModel ( QObject *  parent = nullptr)
explicit

constructor

Definition at line 19 of file qgsmaplayerstylecategoriesmodel.cpp.

Member Function Documentation

◆ categories()

QgsMapLayer::StyleCategories QgsMapLayerStyleCategoriesModel::categories ( ) const

Returns the categories as defined in the model.

Definition at line 37 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ columnCount()

int QgsMapLayerStyleCategoriesModel::columnCount ( const QModelIndex &  = QModelIndex()) const
override

Definition at line 57 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ data()

QVariant QgsMapLayerStyleCategoriesModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 62 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ flags()

Qt::ItemFlags QgsMapLayerStyleCategoriesModel::flags ( const QModelIndex &  ) const
override

Definition at line 288 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ rowCount()

int QgsMapLayerStyleCategoriesModel::rowCount ( const QModelIndex &  = QModelIndex()) const
override

Definition at line 49 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ setCategories()

void QgsMapLayerStyleCategoriesModel::setCategories ( QgsMapLayer::StyleCategories  categories)

Reset the model data.

Definition at line 27 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ setData()

bool QgsMapLayerStyleCategoriesModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

Definition at line 263 of file qgsmaplayerstylecategoriesmodel.cpp.

◆ setShowAllCategories()

void QgsMapLayerStyleCategoriesModel::setShowAllCategories ( bool  showAll)

Defines if the model should list the AllStyleCategories entry.

Definition at line 42 of file qgsmaplayerstylecategoriesmodel.cpp.


The documentation for this class was generated from the following files: