summaryrefslogtreecommitdiffstats
path: root/gui/versionselectdialog.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-05-06 12:48:01 -0500
committerAndrew <forkk@forkk.net>2013-05-06 12:48:29 -0500
commit74133bb17282dc2df2fcf4e754318122a7a5e6f8 (patch)
tree0d3e070d06f228944b4dcb58bb9671d625679b50 /gui/versionselectdialog.h
parent857a4e4dbed88b647619c213d731dc460d034820 (diff)
downloadMultiMC-74133bb17282dc2df2fcf4e754318122a7a5e6f8.tar
MultiMC-74133bb17282dc2df2fcf4e754318122a7a5e6f8.tar.gz
MultiMC-74133bb17282dc2df2fcf4e754318122a7a5e6f8.tar.lz
MultiMC-74133bb17282dc2df2fcf4e754318122a7a5e6f8.tar.xz
MultiMC-74133bb17282dc2df2fcf4e754318122a7a5e6f8.zip
Allow users to filter out MCNostalgia and Snapshots from the version list.
Resolves JIRA issue MMC-9: https://jira.forkk.net/browse/MMC-9
Diffstat (limited to 'gui/versionselectdialog.h')
-rw-r--r--gui/versionselectdialog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/versionselectdialog.h b/gui/versionselectdialog.h
index 097be93f..0f45d8e5 100644
--- a/gui/versionselectdialog.h
+++ b/gui/versionselectdialog.h
@@ -18,6 +18,8 @@
#include <QDialog>
+#include <QSortFilterProxyModel>
+
class InstVersionList;
class InstVersion;
@@ -44,10 +46,14 @@ public:
private slots:
void on_refreshButton_clicked();
+ void updateFilterState();
+
private:
Ui::VersionSelectDialog *ui;
InstVersionList *m_vlist;
+
+ QSortFilterProxyModel *m_proxyModel;
};
#endif // VERSIONSELECTDIALOG_H