diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-08-04 21:54:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-08-04 21:54:25 +0200 |
commit | eec87db86a8a00db0a9145a3b17c53408f7b1f5b (patch) | |
tree | 9df591cc6fe52f3a84c15cdecbbf20959ab99f30 /application/pages/ModFolderPage.h | |
parent | 42a98c366129bba97464f7ac3771b547d6cae804 (diff) | |
download | MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.gz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.lz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.tar.xz MultiMC-eec87db86a8a00db0a9145a3b17c53408f7b1f5b.zip |
GH-1635 add filter bar to mod list pages
Diffstat (limited to 'application/pages/ModFolderPage.h')
-rw-r--r-- | application/pages/ModFolderPage.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/application/pages/ModFolderPage.h b/application/pages/ModFolderPage.h index 23b2f67d..4102a1bb 100644 --- a/application/pages/ModFolderPage.h +++ b/application/pages/ModFolderPage.h @@ -39,7 +39,7 @@ public: void setFilter(const QString & filter) { - m_filter = filter; + m_fileSelectionFilter = filter; } virtual QString displayName() const override @@ -72,11 +72,13 @@ protected: private: Ui::ModFolderPage *ui; std::shared_ptr<ModList> m_mods; + QSortFilterProxyModel *m_filterModel; QString m_iconName; QString m_id; QString m_displayName; QString m_helpName; - QString m_filter; + QString m_fileSelectionFilter; + QString m_viewFilter; public slots: @@ -84,6 +86,7 @@ slots: private slots: + void on_filterTextChanged(const QString & newContents); void on_addModBtn_clicked(); void on_rmModBtn_clicked(); void on_viewModBtn_clicked(); |