Sat, 24 Aug 2019 14:44:42 +0300
things
#include "mainwindow.h" #include "ui_mainwindow.h" #include "version.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow{parent}, ui{*new Ui_MainWindow} { ui.setupUi(this); connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close); QString title = ::appName; title += " "; title += fullVersionString(); setWindowTitle(title); } MainWindow::~MainWindow() { delete &this->ui; }