Changeset View
Changeset View
Standalone View
Standalone View
src/presentation/taskfilterproxymodel.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 TaskFilterProxyModel : public QSortFilterProxyModel | 32 | class TaskFilterProxyModel : public QSortFilterProxyModel | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | Q_ENUMS(SortType) | | |||
36 | public: | 35 | public: | ||
37 | enum SortType { | 36 | enum SortType { | ||
38 | TitleSort = 0, | 37 | TitleSort = 0, | ||
39 | DateSort | 38 | DateSort | ||
40 | }; | 39 | }; | ||
40 | Q_ENUM(SortType) | ||||
41 | 41 | | |||
42 | explicit TaskFilterProxyModel(QObject *parent = nullptr); | 42 | explicit TaskFilterProxyModel(QObject *parent = nullptr); | ||
43 | 43 | | |||
44 | SortType sortType() const; | 44 | SortType sortType() const; | ||
45 | void setSortType(SortType type); | 45 | void setSortType(SortType type); | ||
46 | 46 | | |||
47 | void setSortOrder(Qt::SortOrder order); | 47 | void setSortOrder(Qt::SortOrder order); | ||
48 | 48 | | |||
Show All 15 Lines |