diff options
| author | Tannin <devnull@localhost> | 2015-01-03 15:58:52 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-01-03 15:58:52 +0100 |
| commit | a16e25380f088dc310fbed24d2dcef603357e99a (patch) | |
| tree | 40fc3b5254f2797eb20bfac1d54a22652d469fa2 /src/modlistsortproxy.h | |
| parent | 459816ab71ae6b350847cc93f1e03e49ecf75ade (diff) | |
| parent | f2f9e11fdd876821107cff0c1c5b9d8ecf66691f (diff) | |
Merge with branch1.2
Diffstat (limited to 'src/modlistsortproxy.h')
| -rw-r--r-- | src/modlistsortproxy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modlistsortproxy.h b/src/modlistsortproxy.h index ed98f71c..05392c0b 100644 --- a/src/modlistsortproxy.h +++ b/src/modlistsortproxy.h @@ -37,6 +37,12 @@ public: FILTER_OR
};
+ enum FilterType {
+ TYPE_SPECIAL,
+ TYPE_CATEGORY,
+ TYPE_CONTENT
+ };
+
public:
explicit ModListSortProxy(Profile *profile, QObject *parent = 0);
@@ -45,6 +51,8 @@ public: void setCategoryFilter(const std::vector<int> &categories);
+ void setContentFilter(const std::vector<int> &content);
+
virtual Qt::ItemFlags flags(const QModelIndex &modelIndex) const;
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent);
@@ -110,6 +118,7 @@ private: Profile *m_Profile;
std::vector<int> m_CategoryFilter;
+ std::vector<int> m_ContentFilter;
std::bitset<ModList::COL_LASTCOLUMN + 1> m_EnabledColumns;
QString m_CurrentFilter;
|
