diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-04-02 20:18:06 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-04-02 20:22:52 +0200 |
commit | 5359f4499a298f8997d839804cc2497882551125 (patch) | |
tree | 9e1646fbe906f6ba971c62ca664e95cb23dc356e /gui | |
parent | 04b45f3629f6f2da0abc34a45fb3aa4dcc3c1f02 (diff) | |
download | MultiMC-5359f4499a298f8997d839804cc2497882551125.tar MultiMC-5359f4499a298f8997d839804cc2497882551125.tar.gz MultiMC-5359f4499a298f8997d839804cc2497882551125.tar.lz MultiMC-5359f4499a298f8997d839804cc2497882551125.tar.xz MultiMC-5359f4499a298f8997d839804cc2497882551125.zip |
NOISSUE remove obsolete EnabledItemFilter model
Diffstat (limited to 'gui')
-rw-r--r-- | gui/pages/LegacyUpgradePage.h | 1 | ||||
-rw-r--r-- | gui/pages/LogPage.h | 2 | ||||
-rw-r--r-- | gui/pages/ModFolderPage.h | 1 | ||||
-rw-r--r-- | gui/pages/NotesPage.h | 1 | ||||
-rw-r--r-- | gui/pages/VersionPage.cpp | 8 | ||||
-rw-r--r-- | gui/pages/VersionPage.h | 2 |
6 files changed, 2 insertions, 13 deletions
diff --git a/gui/pages/LegacyUpgradePage.h b/gui/pages/LegacyUpgradePage.h index 969b5440..25782aae 100644 --- a/gui/pages/LegacyUpgradePage.h +++ b/gui/pages/LegacyUpgradePage.h @@ -22,7 +22,6 @@ #include "BasePage.h" #include <MultiMC.h> -class EnabledItemFilter; namespace Ui { class LegacyUpgradePage; diff --git a/gui/pages/LogPage.h b/gui/pages/LogPage.h index 3d5580dc..fea438c0 100644 --- a/gui/pages/LogPage.h +++ b/gui/pages/LogPage.h @@ -23,8 +23,6 @@ #include "BasePage.h" #include <MultiMC.h> -class EnabledItemFilter; -class MinecraftProcess; namespace Ui { class LogPage; diff --git a/gui/pages/ModFolderPage.h b/gui/pages/ModFolderPage.h index 8859ad99..d2452ff6 100644 --- a/gui/pages/ModFolderPage.h +++ b/gui/pages/ModFolderPage.h @@ -22,7 +22,6 @@ #include "BasePage.h" #include <MultiMC.h> -class EnabledItemFilter; class ModList; namespace Ui { diff --git a/gui/pages/NotesPage.h b/gui/pages/NotesPage.h index f77ea530..6dcdce32 100644 --- a/gui/pages/NotesPage.h +++ b/gui/pages/NotesPage.h @@ -22,7 +22,6 @@ #include "BasePage.h" #include <MultiMC.h> -class EnabledItemFilter; namespace Ui { class NotesPage; diff --git a/gui/pages/VersionPage.cpp b/gui/pages/VersionPage.cpp index 17869589..61253c1b 100644 --- a/gui/pages/VersionPage.cpp +++ b/gui/pages/VersionPage.cpp @@ -39,7 +39,6 @@ #include "logic/ModList.h" #include "logic/minecraft/MinecraftProfile.h" -#include "logic/EnabledItemFilter.h" #include "logic/forge/ForgeVersionList.h" #include "logic/forge/ForgeInstaller.h" #include "logic/liteloader/LiteLoaderVersionList.h" @@ -68,17 +67,14 @@ VersionPage::VersionPage(OneSixInstance *inst, QWidget *parent) m_version = m_inst->getMinecraftProfile(); if (m_version) { - main_model = new EnabledItemFilter(this); - main_model->setActive(true); - main_model->setSourceModel(m_version.get()); - ui->libraryTreeView->setModel(main_model); + ui->libraryTreeView->setModel(m_version.get()); ui->libraryTreeView->installEventFilter(this); ui->libraryTreeView->setSelectionMode(QAbstractItemView::SingleSelection); connect(ui->libraryTreeView->selectionModel(), &QItemSelectionModel::currentChanged, this, &VersionPage::versionCurrent); updateVersionControls(); // select first item. - auto index = main_model->index(0,0); + auto index = ui->libraryTreeView->model()->index(0,0); if(index.isValid()) ui->libraryTreeView->setCurrentIndex(index); } diff --git a/gui/pages/VersionPage.h b/gui/pages/VersionPage.h index f1b98dbe..0354c886 100644 --- a/gui/pages/VersionPage.h +++ b/gui/pages/VersionPage.h @@ -21,7 +21,6 @@ #include "logic/net/NetJob.h" #include "BasePage.h" -class EnabledItemFilter; namespace Ui { class VersionPage; @@ -72,7 +71,6 @@ protected: private: Ui::VersionPage *ui; std::shared_ptr<MinecraftProfile> m_version; - EnabledItemFilter *main_model; OneSixInstance *m_inst; NetJobPtr forgeJob; |