summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorAlex <robotbrain@robotbrain.info>2015-08-30 15:33:53 -0400
committerPetr Mrázek <peterix@gmail.com>2015-09-06 16:00:07 +0200
commit83434a9be557839e46d12ed45bddab4adb312d1b (patch)
treed4c4bfa21f2730eb456f38642a333afc764484a6 /application
parent583e5946f4cd29f0a18bcc4fad5608de739aa113 (diff)
downloadMultiMC-83434a9be557839e46d12ed45bddab4adb312d1b.tar
MultiMC-83434a9be557839e46d12ed45bddab4adb312d1b.tar.gz
MultiMC-83434a9be557839e46d12ed45bddab4adb312d1b.tar.lz
MultiMC-83434a9be557839e46d12ed45bddab4adb312d1b.tar.xz
MultiMC-83434a9be557839e46d12ed45bddab4adb312d1b.zip
Comment changes and general cleanup
Diffstat (limited to 'application')
-rw-r--r--application/pages/WorldListPage.cpp28
-rw-r--r--application/pages/WorldListPage.h17
2 files changed, 29 insertions, 16 deletions
diff --git a/application/pages/WorldListPage.cpp b/application/pages/WorldListPage.cpp
index 662b7452..6a50748c 100644
--- a/application/pages/WorldListPage.cpp
+++ b/application/pages/WorldListPage.cpp
@@ -1,6 +1,17 @@
-//
-// Created by robotbrain on 8/18/15.
-//
+/* Copyright 2013-2015 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#include "WorldListPage.h"
#include "ui_WorldListPage.h"
@@ -12,21 +23,12 @@
WorldListPage::WorldListPage(BaseInstance *inst, std::shared_ptr<WorldList> worlds, QString id,
QString iconName, QString displayName, QString helpPage,
QWidget *parent)
- : QWidget(parent), ui(new Ui::WorldListPage)
+ : QWidget(parent), ui(new Ui::WorldListPage), m_worlds(worlds), m_inst(inst), m_id(id), m_displayName(displayName), m_iconName(iconName), m_helpName(helpPage)
{
ui->setupUi(this);
ui->tabWidget->tabBar()->hide();
- m_inst = inst;
- m_worlds = worlds;
- m_id = id;
- m_displayName = displayName;
- m_iconName = iconName;
- m_helpName = helpPage;
ui->worldTreeView->setModel(m_worlds.get());
ui->worldTreeView->installEventFilter(this);
- auto smodel = ui->worldTreeView->selectionModel();
- connect(smodel, SIGNAL(currentChanged(QModelIndex, QModelIndex)),
- SLOT(modCurrent(QModelIndex, QModelIndex)));
}
void WorldListPage::opened()
diff --git a/application/pages/WorldListPage.h b/application/pages/WorldListPage.h
index f55f2999..a94aabb4 100644
--- a/application/pages/WorldListPage.h
+++ b/application/pages/WorldListPage.h
@@ -1,6 +1,17 @@
-//
-// Created by robotbrain on 8/18/15.
-//
+/* Copyright 2013-2015 MultiMC Contributors
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
#pragma once