From 6ae20ac80f2e767815ed9d94fdfa778ca4474887 Mon Sep 17 00:00:00 2001 From: Admiral-Fish Date: Mon, 13 Jan 2020 21:23:14 -0700 Subject: [PATCH] Change window title --- 3DSTimeFinder.pro | 2 ++ Forms/MainWindow.cpp | 1 + Forms/MainWindow.ui | 5 +---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/3DSTimeFinder.pro b/3DSTimeFinder.pro index 1c421ef..30a4f5a 100644 --- a/3DSTimeFinder.pro +++ b/3DSTimeFinder.pro @@ -8,6 +8,8 @@ TARGET = 3DSTimeFinder TEMPLATE = app VERSION = 1.0.0 +DEFINES += VERSION=\\\"$$VERSION\\\" + #RC_ICONS += Images/3dstimefinder.ico #ICON += Images/3dstimefinder.icns diff --git a/Forms/MainWindow.cpp b/Forms/MainWindow.cpp index b9f28dc..1a73e27 100644 --- a/Forms/MainWindow.cpp +++ b/Forms/MainWindow.cpp @@ -36,6 +36,7 @@ MainWindow::MainWindow(QWidget *parent) , ui(new Ui::MainWindow) { ui->setupUi(this); + this->setWindowTitle(QString("3DS Time Finder %1").arg(VERSION)); setupModel(); setupStyle(); diff --git a/Forms/MainWindow.ui b/Forms/MainWindow.ui index e02771b..8daeaff 100644 --- a/Forms/MainWindow.ui +++ b/Forms/MainWindow.ui @@ -16,9 +16,6 @@ 350 - - 3DS Time Finder 1.0.0 - @@ -89,7 +86,7 @@ 0 0 450 - 21 + 22