16 #ifndef QGSMAPLAYERSTYLECATEGORIESMODEL_H
17 #define QGSMAPLAYERSTYLECATEGORIESMODEL_H
22 #include <QAbstractListModel>
43 void setCategories( QgsMapLayer::StyleCategories categories );
46 QgsMapLayer::StyleCategories categories()
const;
49 void setShowAllCategories(
bool showAll );
51 int rowCount(
const QModelIndex & = QModelIndex() )
const override;
52 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
53 QVariant data(
const QModelIndex &index,
int role )
const override;
54 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
55 Qt::ItemFlags flags(
const QModelIndex & )
const override;
59 QgsMapLayer::StyleCategories mCategories;
61 QList<QgsMapLayer::StyleCategory> mCategoryList;
63 bool mShowAllCategories =
false;
66 #endif // QGSMAPLAYERSTYLECATEGORIESMODEL_H