16 Q_PROPERTY(QList<OptionCategory *> categories READ categories WRITE setCategories)
19 explicit OptionCategoryModel(
const QList<OptionCategory *> &categories, QObject *parent =
nullptr);
22 const QList<OptionCategory *> &categories()
const;
25 void setCategories(
const QList<OptionCategory *> &categories);
26 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
27 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const override;
30 void categoryChangedName();
31 void categoryChangedIcon();
34 QList<OptionCategory *> m_categories;