Changeset View
Changeset View
Standalone View
Standalone View
src/presentation/availablepagessortfilterproxymodel.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #include <QSortFilterProxyModel> | 28 | #include <QSortFilterProxyModel> | ||
29 | 29 | | |||
30 | namespace Presentation { | 30 | namespace Presentation { | ||
31 | 31 | | |||
32 | class AvailablePagesSortFilterProxyModel : public QSortFilterProxyModel | 32 | class AvailablePagesSortFilterProxyModel : public QSortFilterProxyModel | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | Q_ENUMS(SortType) | | |||
36 | public: | 35 | public: | ||
37 | explicit AvailablePagesSortFilterProxyModel(QObject *parent = 0); | 36 | explicit AvailablePagesSortFilterProxyModel(QObject *parent = 0); | ||
38 | 37 | | |||
39 | protected: | 38 | protected: | ||
40 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; | 39 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; | ||
41 | }; | 40 | }; | ||
42 | 41 | | |||
43 | } | 42 | } | ||
44 | 43 | | |||
45 | #endif // PRESENTATION_AVAILABLEPAGESSORTFILTERPROXYMODEL_H | 44 | #endif // PRESENTATION_AVAILABLEPAGESSORTFILTERPROXYMODEL_H |