1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

Use QCoreApplication version to store and retrieve the version

This commit is contained in:
f4exb
2017-11-18 03:50:21 +01:00
parent 05ec6d1074
commit 8e1454152b
4 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -569,9 +569,9 @@ void MainWindow::createStatusBar()
{
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
#if QT_VERSION >= 0x050400
m_showSystemWidget = new QLabel("SDRangel v3.8.4 " + qtVersionStr + QSysInfo::prettyProductName(), this);
m_showSystemWidget = new QLabel("SDRangel v" + qApp->applicationVersion() + " " + qtVersionStr + QSysInfo::prettyProductName(), this);
#else
m_showSystemWidget = new QLabel("SDRangel v3.8.4 " + qtVersionStr, this);
m_showSystemWidget = new QLabel("SDRangel v" + qApp->applicationVersion() + " " + qtVersionStr, this);
#endif
statusBar()->addPermanentWidget(m_showSystemWidget);