src/mainwindow.cpp

changeset 1
51d14b0c68c0
parent 0
f9f4d4d6f162
child 3
55a55a9ec2c2
--- a/src/mainwindow.cpp	Fri Aug 02 21:29:06 2019 +0300
+++ b/src/mainwindow.cpp	Sat Aug 03 01:18:56 2019 +0300
@@ -1,12 +1,17 @@
 #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);
+	ui.setupUi(this);
+	connect(ui.actionQuit, &QAction::triggered, this, &QMainWindow::close);
+	QString title = ::appName;
+	title += " ";
+	title += fullVersionString();
+	setWindowTitle(title);
 }
 
 MainWindow::~MainWindow()

mercurial