more on mainwindow

allow_new_sellers
Martin Brodbeck 4 years ago
parent a490dafb02
commit 31d46866f2
  1. 9
      src/gui/mainwindow.cpp
  2. 7
      src/gui/mainwindow.h

@ -2,5 +2,10 @@
MainWindow::MainWindow()
{
ui.setupUi(this);
}
ui_.setupUi(this);
connect(ui_.actionQuit, &QAction::triggered, qApp, QApplication::quit);
marketplace_ = std::make_unique<Marketplace>();
}

@ -1,9 +1,13 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <marketplace.h>
#include "ui_mainwindow.h"
#include <QMainWindow>
#include <memory>
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> marketplace_;
};
#endif
Loading…
Cancel
Save