src/mainwindow.cpp

changeset 0
f9f4d4d6f162
child 1
51d14b0c68c0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mainwindow.cpp	Fri Aug 02 21:29:06 2019 +0300
@@ -0,0 +1,15 @@
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+
+MainWindow::MainWindow(QWidget *parent) :
+    QMainWindow{parent},
+    ui{*new Ui_MainWindow}
+{
+    ui.setupUi(this);
+    connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close);
+}
+
+MainWindow::~MainWindow()
+{
+    delete &this->ui;
+}

mercurial