From 5aadf42250b83e74d2452c8abc39aaf123b310e9 Mon Sep 17 00:00:00 2001 From: PianetaRadio <78976006+PianetaRadio@users.noreply.github.com> Date: Wed, 24 Jul 2024 19:44:29 +0200 Subject: [PATCH] Title Display software version in the window title --- ChangeLog.txt | 1 + mainwindow.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 6af1898..979a913 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -5,6 +5,7 @@ CatRadio 1.4.1 - 2024-xx-xx + CW memory keyer + Check hamlib version on startup + * Display software version in the window title * Bug fix: IF shift 1.4.0 - 2024-03-17 diff --git a/mainwindow.cpp b/mainwindow.cpp index b3bae55..7a17d2a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -78,6 +78,10 @@ MainWindow::MainWindow(QWidget *parent) { ui->setupUi(this); + //display name and version in the window title + QString version = QString::number(VERSION_MAJ)+"."+QString::number(VERSION_MIN)+"."+QString::number(VERSION_MIC); + this->setWindowTitle("CatRadio v."+version); + QDir::setCurrent(QCoreApplication::applicationDirPath()); //set current path = application path timer = new QTimer(this); //timer for rigDaemon thread call