summaryrefslogtreecommitdiff
path: root/src/modlistsortproxy.h
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-05-27 22:46:03 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-05-27 22:46:03 +0200
commit4791569790e9695512248a9acdfbcd1c96f13967 (patch)
tree7b62a684d943c6ae133c95d1472e262d5e41a249 /src/modlistsortproxy.h
parent700c5fb16c1c4e39fd757998e95ead4a25ecc6da (diff)
Ignore filter-only content when sorting.
Diffstat (limited to 'src/modlistsortproxy.h')
-rw-r--r--src/modlistsortproxy.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modlistsortproxy.h b/src/modlistsortproxy.h
index 3a29b7f7..bf5c077a 100644
--- a/src/modlistsortproxy.h
+++ b/src/modlistsortproxy.h
@@ -25,6 +25,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "modlist.h"
class Profile;
+class OrganizerCore;
class ModListSortProxy : public QSortFilterProxyModel
{
@@ -72,7 +73,7 @@ public:
public:
- explicit ModListSortProxy(Profile *profile, QObject *parent = 0);
+ explicit ModListSortProxy(Profile *profile, OrganizerCore * organizer);
void setProfile(Profile *profile);
@@ -154,6 +155,8 @@ private slots:
void postDataChanged();
private:
+ OrganizerCore* m_Organizer;
+
Profile* m_Profile;
std::vector<Criteria> m_Criteria;
QString m_Filter;