Changeset View
Changeset View
Standalone View
Standalone View
src/presentation/querytreemodelbase.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 73 | enum { | |||
---|---|---|---|---|---|
75 | IconNameRole, | 75 | IconNameRole, | ||
76 | IsDefaultRole, | 76 | IsDefaultRole, | ||
77 | AdditionalInfoRole, | 77 | AdditionalInfoRole, | ||
78 | UserRole | 78 | UserRole | ||
79 | }; | 79 | }; | ||
80 | 80 | | |||
81 | ~QueryTreeModelBase(); | 81 | ~QueryTreeModelBase(); | ||
82 | 82 | | |||
83 | QHash<int, QByteArray> roleNames() const override; | ||||
83 | Qt::ItemFlags flags(const QModelIndex &index) const override; | 84 | Qt::ItemFlags flags(const QModelIndex &index) const override; | ||
84 | 85 | | |||
85 | QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; | 86 | QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override; | ||
86 | QModelIndex parent(const QModelIndex &index) const override; | 87 | QModelIndex parent(const QModelIndex &index) const override; | ||
87 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | 88 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
88 | int columnCount(const QModelIndex &parent = QModelIndex()) const override; | 89 | int columnCount(const QModelIndex &parent = QModelIndex()) const override; | ||
89 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | 90 | QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; | ||
90 | bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; | 91 | bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override; | ||
Show All 24 Lines |