diff options
| author | Tannin <devnull@localhost> | 2015-06-10 21:22:54 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2015-06-10 21:22:54 +0200 |
| commit | d25a81071c078585f14176283b89e1a6b0ad5795 (patch) | |
| tree | 002ccfa83c9db52f15dc4c2e919b7d68836f8594 /src/modlistsortproxy.h | |
| parent | ef9a61886c090e184c042f884687f401e25b1faa (diff) | |
more generic solution to the problem fixed in changeset bb74f8eb639c, now also applied in another location
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 93092ba7..ce7e5eb5 100644 --- a/src/modlistsortproxy.h +++ b/src/modlistsortproxy.h @@ -58,6 +58,8 @@ public: virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action,
int row, int column, const QModelIndex &parent);
+ virtual void setSourceModel(QAbstractItemModel *sourceModel) override;
+
/**
* @brief enable all mods visible under the current filter
**/
@@ -112,6 +114,11 @@ private: bool filterMatchesModAnd(ModInfo::Ptr info, bool enabled) const;
bool filterMatchesModOr(ModInfo::Ptr info, bool enabled) const;
+private slots:
+
+ void aboutToChangeData();
+ void postDataChanged();
+
private:
Profile *m_Profile;
@@ -124,6 +131,8 @@ private: bool m_FilterActive;
FilterMode m_FilterMode;
+ std::vector<int> m_PreChangeFilters;
+
};
#endif // MODLISTSORTPROXY_H
|
