Sat, 03 Aug 2019 01:18:56 +0300
add version
#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; }