]> git.sven.stormbind.net Git - sven/vym.git/blob - taskfiltermodel.h
Import Upstream version 2.6.11
[sven/vym.git] / taskfiltermodel.h
1 #ifndef TASKFILTERMODEL_H
2 #define TASKFILTERMODEL_H
3
4 #include <QSortFilterProxyModel>
5
6 class TaskFilterModel:public QSortFilterProxyModel
7 {
8 public:
9     void setFilter (bool b);
10     void setFilterNew (bool b);
11     void setMapFilter (const QString &s);
12     void setFilterFlags (bool b);
13 protected:    
14     bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
15 private:
16     bool useFilter;
17     QString mapFilter;
18     bool filterNew;
19     bool filterFlags;
20 };
21
22 #endif