From 6aa04b9d37d879cd623fe899244575442cd0c0a3 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Wed, 6 Jul 2022 20:09:54 -0600 Subject: [PATCH] put version in title --- mupen64plus-gui/mainwindow.cpp | 5 +---- mupen64plus-gui/mainwindow.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/mupen64plus-gui/mainwindow.cpp b/mupen64plus-gui/mainwindow.cpp index f36ccc6..e1a5ab0 100644 --- a/mupen64plus-gui/mainwindow.cpp +++ b/mupen64plus-gui/mainwindow.cpp @@ -324,10 +324,7 @@ MainWindow::MainWindow(QWidget *parent) : verbose = 0; nogui = 0; ui->setupUi(this); - - m_title = "mupen64plus-gui Build Date: "; - m_title += __DATE__; - this->setWindowTitle(m_title); + this->setWindowTitle("m64p build: " + QStringLiteral(GUI_VERSION).mid(0,7)); QString ini_path = QDir(QCoreApplication::applicationDirPath()).filePath("mupen64plus-gui.ini"); settings = new QSettings(ini_path, QSettings::IniFormat, this); diff --git a/mupen64plus-gui/mainwindow.h b/mupen64plus-gui/mainwindow.h index 7e44fd7..61ad2a3 100644 --- a/mupen64plus-gui/mainwindow.h +++ b/mupen64plus-gui/mainwindow.h @@ -135,7 +135,6 @@ private: QMenu * OpenRecent; int verbose; int nogui; - QString m_title; VkWindow *my_window = nullptr; WorkerThread *workerThread = nullptr;