diff options
author | Petr Mrázek <peterix@gmail.com> | 2020-06-27 12:02:31 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2020-06-27 12:02:31 +0200 |
commit | a0ef20a264656c127dd62eb9140e89a2fda6a8e0 (patch) | |
tree | 43b9262f501e9ec835939ec50cc23473e661b291 /application/pages/instance/VersionPage.cpp | |
parent | 4ca62916f562ca2d233d0fb4771054a106f1afc3 (diff) | |
download | MultiMC-a0ef20a264656c127dd62eb9140e89a2fda6a8e0.tar MultiMC-a0ef20a264656c127dd62eb9140e89a2fda6a8e0.tar.gz MultiMC-a0ef20a264656c127dd62eb9140e89a2fda6a8e0.tar.lz MultiMC-a0ef20a264656c127dd62eb9140e89a2fda6a8e0.tar.xz MultiMC-a0ef20a264656c127dd62eb9140e89a2fda6a8e0.zip |
NOISSUE rename ComponentList to PackProfile
It's not just components, so the naming needed cleaning up.
Diffstat (limited to 'application/pages/instance/VersionPage.cpp')
-rw-r--r-- | application/pages/instance/VersionPage.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/application/pages/instance/VersionPage.cpp b/application/pages/instance/VersionPage.cpp index c7a8dc30..c4a7cb44 100644 --- a/application/pages/instance/VersionPage.cpp +++ b/application/pages/instance/VersionPage.cpp @@ -37,7 +37,7 @@ #include <QString> #include <QUrl> -#include "minecraft/ComponentList.h" +#include "minecraft/PackProfile.h" #include "minecraft/auth/MojangAccountList.h" #include "minecraft/mod/Mod.h" #include "icons/IconList.h" @@ -114,9 +114,9 @@ VersionPage::VersionPage(MinecraftInstance *inst, QWidget *parent) ui->toolBar->insertSpacer(ui->actionReload); - m_profile = m_inst->getComponentList(); + m_profile = m_inst->getPackProfile(); - reloadComponentList(); + reloadPackProfile(); auto proxy = new IconProxy(ui->packageView); proxy->setSourceModel(m_profile.get()); @@ -129,7 +129,7 @@ VersionPage::VersionPage(MinecraftInstance *inst, QWidget *parent) auto smodel = ui->packageView->selectionModel(); connect(smodel, &QItemSelectionModel::currentChanged, this, &VersionPage::packageCurrent); - connect(m_profile.get(), &ComponentList::minecraftChanged, this, &VersionPage::updateVersionControls); + connect(m_profile.get(), &PackProfile::minecraftChanged, this, &VersionPage::updateVersionControls); controlsEnabled = !m_inst->isRunning(); updateVersionControls(); preselect(0); @@ -232,7 +232,7 @@ void VersionPage::updateButtons(int row) ui->actionAdd_to_Minecraft_jar->setEnabled(controlsEnabled); } -bool VersionPage::reloadComponentList() +bool VersionPage::reloadPackProfile() { try { @@ -255,7 +255,7 @@ bool VersionPage::reloadComponentList() void VersionPage::on_actionReload_triggered() { - reloadComponentList(); + reloadPackProfile(); m_container->refreshContainer(); } @@ -270,7 +270,7 @@ void VersionPage::on_actionRemove_triggered() } } updateButtons(); - reloadComponentList(); + reloadPackProfile(); m_container->refreshContainer(); } @@ -306,7 +306,7 @@ void VersionPage::on_actionMove_up_triggered() { try { - m_profile->move(currentRow(), ComponentList::MoveUp); + m_profile->move(currentRow(), PackProfile::MoveUp); } catch (const Exception &e) { @@ -319,7 +319,7 @@ void VersionPage::on_actionMove_down_triggered() { try { - m_profile->move(currentRow(), ComponentList::MoveDown); + m_profile->move(currentRow(), PackProfile::MoveDown); } catch (const Exception &e) { |