diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index c94ac19..d352cfe 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -2,5 +2,10 @@ MainWindow::MainWindow() { - ui.setupUi(this); -} \ No newline at end of file + ui_.setupUi(this); + + connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit); + + marketplace_ = std::make_unique(); +} + diff --git a/src/gui/mainwindow.h b/src/gui/mainwindow.h index 2cc3dad..943382c 100644 --- a/src/gui/mainwindow.h +++ b/src/gui/mainwindow.h @@ -1,9 +1,13 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include + #include "ui_mainwindow.h" #include +#include + class MainWindow : public QMainWindow { Q_OBJECT @@ -12,7 +16,8 @@ class MainWindow : public QMainWindow MainWindow(); private: - Ui::MainWindow ui; + Ui::MainWindow ui_; + std::unique_ptr marketplace_; }; #endif \ No newline at end of file