mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 13:21:50 -05:00
Main window status tag: call QSysInfo::prettyProductName() only if Qt version is >= 5.4
This commit is contained in:
parent
d879a3133c
commit
607e89cea6
@ -450,7 +450,11 @@ void MainWindow::savePresetSettings(Preset* preset, int tabIndex)
|
|||||||
void MainWindow::createStatusBar()
|
void MainWindow::createStatusBar()
|
||||||
{
|
{
|
||||||
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
|
QString qtVersionStr = QString("Qt %1 ").arg(QT_VERSION_STR);
|
||||||
|
#if QT_VERSION >= 0x050400
|
||||||
m_showSystemWidget = new QLabel("SDRangel v2.5.2 " + qtVersionStr + QSysInfo::prettyProductName(), this);
|
m_showSystemWidget = new QLabel("SDRangel v2.5.2 " + qtVersionStr + QSysInfo::prettyProductName(), this);
|
||||||
|
#else
|
||||||
|
m_showSystemWidget = new QLabel("SDRangel v2.5.2 " + qtVersionStr, this);
|
||||||
|
#endif
|
||||||
statusBar()->addPermanentWidget(m_showSystemWidget);
|
statusBar()->addPermanentWidget(m_showSystemWidget);
|
||||||
|
|
||||||
m_dateTimeWidget = new QLabel(tr("Date"), this);
|
m_dateTimeWidget = new QLabel(tr("Date"), this);
|
||||||
|
Loading…
Reference in New Issue
Block a user