Sat, 03 Aug 2019 01:18:56 +0300
add version
0 | 1 | #include "mainwindow.h" |
2 | #include "ui_mainwindow.h" | |
1 | 3 | #include "version.h" |
0 | 4 | |
5 | MainWindow::MainWindow(QWidget *parent) : | |
6 | QMainWindow{parent}, | |
7 | ui{*new Ui_MainWindow} | |
8 | { | |
1 | 9 | ui.setupUi(this); |
10 | connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close); | |
11 | QString title = ::appName; | |
12 | title += " "; | |
13 | title += fullVersionString(); | |
14 | setWindowTitle(title); | |
0 | 15 | } |
16 | ||
17 | MainWindow::~MainWindow() | |
18 | { | |
19 | delete &this->ui; | |
20 | } |