diff options
| author | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-03-09 12:34:34 +0100 |
| commit | 7a1ae9b0f1560c9eda32e032796fbb3fd56ff236 (patch) | |
| tree | dea71435ac1042cb008fcd9f7b1ec57e6ea91227 /src/modlistsortproxy.h | |
| parent | d45ebf134819e1559718681becca9c4139fb7151 (diff) | |
| parent | db2954e8eb41da715b9e7d79a72e225797401413 (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;
|
