16#ifndef QGSMAPLAYERSTYLECATEGORIESMODEL_H
17#define QGSMAPLAYERSTYLECATEGORIESMODEL_H
22#include <QAbstractListModel>
47 void setCategories( QgsMapLayer::StyleCategories categories );
50 QgsMapLayer::StyleCategories categories()
const;
53 void setShowAllCategories(
bool showAll );
55 int rowCount(
const QModelIndex & = QModelIndex() )
const override;
56 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
57 QVariant data(
const QModelIndex &index,
int role )
const override;
58 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
59 Qt::ItemFlags flags(
const QModelIndex & )
const override;
63 QgsMapLayer::StyleCategories mCategories;
65 QList<QgsMapLayer::StyleCategory> mCategoryList;
67 bool mShowAllCategories =
false;
LayerType
Types of layers that can be added to a map.
Model for layer style categories.