diff options
| author | Tannin <devnull@localhost> | 2014-08-18 23:00:25 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-08-18 23:00:25 +0200 |
| commit | 4b1e6683d258412dd6e02c55618ff158c749ab4a (patch) | |
| tree | 799ba86e4fabc44363ccc6dc14c4602b2b9e2919 /src/modlistsortproxy.h | |
| parent | 06701856f8eaed0f6bf802308c07952f0f0dd92e (diff) | |
- can now filter by mod content
- all files/directories that require write access can now be placed in AppData instead of the MO directory
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 cb474200..71da79eb 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);
@@ -111,6 +119,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;
|
