diff options
Diffstat (limited to 'framework/src/domain/folderlistmodel.h')
-rw-r--r-- | framework/src/domain/folderlistmodel.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/src/domain/folderlistmodel.h b/framework/src/domain/folderlistmodel.h index 0e412202..738cf4a0 100644 --- a/framework/src/domain/folderlistmodel.h +++ b/framework/src/domain/folderlistmodel.h | |||
@@ -20,16 +20,14 @@ | |||
20 | 20 | ||
21 | #pragma once | 21 | #pragma once |
22 | 22 | ||
23 | #include <QObject> | 23 | #include <krecursivefilterproxymodel.h> |
24 | #include <QSortFilterProxyModel> | ||
25 | #include <QSharedPointer> | 24 | #include <QSharedPointer> |
26 | #include <QStringList> | ||
27 | 25 | ||
28 | namespace Sink { | 26 | namespace Sink { |
29 | class Query; | 27 | class Query; |
30 | } | 28 | } |
31 | 29 | ||
32 | class FolderListModel : public QSortFilterProxyModel | 30 | class FolderListModel : public KRecursiveFilterProxyModel |
33 | { | 31 | { |
34 | Q_OBJECT | 32 | Q_OBJECT |
35 | 33 | ||
@@ -69,6 +67,7 @@ public: | |||
69 | QVariant folderId() const; | 67 | QVariant folderId() const; |
70 | protected: | 68 | protected: |
71 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; | 69 | bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE; |
70 | bool acceptRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE; | ||
72 | 71 | ||
73 | private: | 72 | private: |
74 | void runQuery(const Sink::Query &query); | 73 | void runQuery(const Sink::Query &query); |