Changeset View
Changeset View
Standalone View
Standalone View
src/profiles/tree/profiletreemodel.hpp
Show All 28 Lines | |||||
29 | class ProfileItem; | 29 | class ProfileItem; | ||
30 | class ProfileModel; | 30 | class ProfileModel; | ||
31 | class ProfileTreeModel : public QAbstractItemModel | 31 | class ProfileTreeModel : public QAbstractItemModel | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit ProfileTreeModel(QObject *parent = 0); | 36 | explicit ProfileTreeModel(QObject *parent = 0); | ||
37 | ~ProfileTreeModel(); | 37 | ~ProfileTreeModel() override; | ||
38 | 38 | | |||
39 | QVariant data(const QModelIndex &index, int role) const override; | 39 | QVariant data(const QModelIndex &index, int role) const override; | ||
40 | //This is reimplemented to prevent selection of the categories | 40 | //This is reimplemented to prevent selection of the categories | ||
41 | Qt::ItemFlags flags(const QModelIndex &index) const override; | 41 | Qt::ItemFlags flags(const QModelIndex &index) const override; | ||
42 | QVariant headerData(int section, Qt::Orientation orientation, | 42 | QVariant headerData(int section, Qt::Orientation orientation, | ||
43 | int role = Qt::DisplayRole) const override; | 43 | int role = Qt::DisplayRole) const override; | ||
44 | QModelIndex index(int row, int column, | 44 | QModelIndex index(int row, int column, | ||
45 | const QModelIndex &parent = QModelIndex()) const override; | 45 | const QModelIndex &parent = QModelIndex()) const override; | ||
Show All 14 Lines |