src/mainwindow.cpp

changeset 1
51d14b0c68c0
parent 0
f9f4d4d6f162
child 3
55a55a9ec2c2
equal deleted inserted replaced
0:f9f4d4d6f162 1:51d14b0c68c0
1 #include "mainwindow.h" 1 #include "mainwindow.h"
2 #include "ui_mainwindow.h" 2 #include "ui_mainwindow.h"
3 #include "version.h"
3 4
4 MainWindow::MainWindow(QWidget *parent) : 5 MainWindow::MainWindow(QWidget *parent) :
5 QMainWindow{parent}, 6 QMainWindow{parent},
6 ui{*new Ui_MainWindow} 7 ui{*new Ui_MainWindow}
7 { 8 {
8 ui.setupUi(this); 9 ui.setupUi(this);
9 connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close); 10 connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close);
11 QString title = ::appName;
12 title += " ";
13 title += fullVersionString();
14 setWindowTitle(title);
10 } 15 }
11 16
12 MainWindow::~MainWindow() 17 MainWindow::~MainWindow()
13 { 18 {
14 delete &this->ui; 19 delete &this->ui;

mercurial