diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/mainwindow.cpp | 6 | ||||
-rw-r--r-- | gui/mainwindow.h | 6 |
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 |