1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 00:18:37 -05:00

Multi device support: display version and system product name in main window status bar

This commit is contained in:
f4exb 2016-05-12 19:28:04 +02:00
parent f275e93f16
commit 7b0e6fd42e
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,7 @@
#include <QTextStream> #include <QTextStream>
#include <QMessageBox> #include <QMessageBox>
#include <QDateTime> #include <QDateTime>
#include <QSysInfo>
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
@ -173,6 +174,9 @@ MainWindow::~MainWindow()
m_dspEngine->stopAllDeviceEngines(); m_dspEngine->stopAllDeviceEngines();
delete m_dateTimeWidget;
delete m_showSystemWidget;
delete ui; delete ui;
} }
@ -260,6 +264,9 @@ void MainWindow::savePresetSettings(Preset* preset)
void MainWindow::createStatusBar() void MainWindow::createStatusBar()
{ {
m_showSystemWidget = new QLabel("SDRangel v2.0.0 " + QSysInfo::prettyProductName(), this);
statusBar()->addPermanentWidget(m_showSystemWidget);
m_dateTimeWidget = new QLabel(tr("Date"), this); m_dateTimeWidget = new QLabel(tr("Date"), this);
m_dateTimeWidget->setToolTip(tr("Current date/time")); m_dateTimeWidget->setToolTip(tr("Current date/time"));
statusBar()->addPermanentWidget(m_dateTimeWidget); statusBar()->addPermanentWidget(m_dateTimeWidget);

View File

@ -105,6 +105,7 @@ private:
int m_lastEngineState; int m_lastEngineState;
QLabel* m_dateTimeWidget; QLabel* m_dateTimeWidget;
QLabel* m_showSystemWidget;
QWidget* m_inputGUI; QWidget* m_inputGUI;