Changeset View
Changeset View
Standalone View
Standalone View
ui/annotationproxymodels.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 81 | public Q_SLOTS: | |||
---|---|---|---|---|---|
82 | /** | 82 | /** | ||
83 | * Sets whether the proxy model shall group | 83 | * Sets whether the proxy model shall group | ||
84 | * the annotations by page. | 84 | * the annotations by page. | ||
85 | */ | 85 | */ | ||
86 | void groupByPage( bool value ); | 86 | void groupByPage( bool value ); | ||
87 | 87 | | |||
88 | private Q_SLOTS: | 88 | private Q_SLOTS: | ||
89 | void rebuildIndexes(); | 89 | void rebuildIndexes(); | ||
90 | void sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles); | ||||
90 | 91 | | |||
91 | private: | 92 | private: | ||
92 | bool mGroupByPage; | 93 | bool mGroupByPage; | ||
93 | QList<QModelIndex> mIndexes; | 94 | QList<QModelIndex> mIndexes; | ||
94 | QList<QPair< QModelIndex, QList<QModelIndex> > > mTreeIndexes; | 95 | QList<QPair< QModelIndex, QList<QModelIndex> > > mTreeIndexes; | ||
95 | }; | 96 | }; | ||
96 | 97 | | |||
97 | /** | 98 | /** | ||
Show All 33 Lines | 131 | public Q_SLOTS: | |||
131 | /** | 132 | /** | ||
132 | * Sets whether the proxy model shall group | 133 | * Sets whether the proxy model shall group | ||
133 | * the annotations by author. | 134 | * the annotations by author. | ||
134 | */ | 135 | */ | ||
135 | void groupByAuthor( bool value ); | 136 | void groupByAuthor( bool value ); | ||
136 | 137 | | |||
137 | private Q_SLOTS: | 138 | private Q_SLOTS: | ||
138 | void rebuildIndexes(); | 139 | void rebuildIndexes(); | ||
140 | void sourceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles); | ||||
139 | 141 | | |||
140 | private: | 142 | private: | ||
141 | class Private; | 143 | class Private; | ||
142 | Private* const d; | 144 | Private* const d; | ||
143 | }; | 145 | }; | ||
144 | 146 | | |||
145 | #endif | 147 | #endif |