summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-01-14 17:42:38 -0600
committerAndrew <forkk@forkk.net>2013-01-14 17:42:38 -0600
commitfce0f5df045f1d956cabeda41406001a037c9ab7 (patch)
tree269c8dd0ceb5ca94ef3c708c9b225de7189b0719 /gui
parent586092cf9901dde873882c76cb3944cd0addbd2a (diff)
downloadMultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.gz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.lz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.tar.xz
MultiMC-fce0f5df045f1d956cabeda41406001a037c9ab7.zip
Added stuff.
Diffstat (limited to 'gui')
-rw-r--r--gui/mainwindow.cpp6
-rw-r--r--gui/mainwindow.h6
2 files changed, 11 insertions, 1 deletions
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index 875cc256..ff9d0461 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -24,6 +24,10 @@ MainWindow::MainWindow(QWidget *parent) :
ui(new Ui::MainWindow)
{
ui->setupUi(this);
+ instList.loadInstances("instances");
+
+ model.setInstanceList(&instList);
+ ui->instListView->setModel(&model);
}
MainWindow::~MainWindow()
@@ -43,7 +47,7 @@ void MainWindow::on_actionViewInstanceFolder_triggered()
void MainWindow::on_actionRefresh_triggered()
{
-
+ instList.loadInstances("instances");
}
void MainWindow::on_actionViewCentralModsFolder_triggered()
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 6d9a0216..a735d78e 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -18,6 +18,9 @@
#include <QMainWindow>
+#include "../data/instancelist.h"
+#include "../data/instancelistmodel.h"
+
namespace Ui {
class MainWindow;
}
@@ -51,6 +54,9 @@ private slots:
private:
Ui::MainWindow *ui;
+
+ InstanceList instList;
+ InstanceListModel model;
};
#endif // MAINWINDOW_H