From 7b0e6fd42e0bba6258126b34f8ca601516da1465 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 12 May 2016 19:28:04 +0200 Subject: [PATCH] Multi device support: display version and system product name in main window status bar --- sdrbase/mainwindow.cpp | 7 +++++++ sdrbase/mainwindow.h | 1 + 2 files changed, 8 insertions(+) diff --git a/sdrbase/mainwindow.cpp b/sdrbase/mainwindow.cpp index c52afbd5a..f06d1e67e 100644 --- a/sdrbase/mainwindow.cpp +++ b/sdrbase/mainwindow.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "mainwindow.h" #include "ui_mainwindow.h" @@ -173,6 +174,9 @@ MainWindow::~MainWindow() m_dspEngine->stopAllDeviceEngines(); + delete m_dateTimeWidget; + delete m_showSystemWidget; + delete ui; } @@ -260,6 +264,9 @@ void MainWindow::savePresetSettings(Preset* preset) 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->setToolTip(tr("Current date/time")); statusBar()->addPermanentWidget(m_dateTimeWidget); diff --git a/sdrbase/mainwindow.h b/sdrbase/mainwindow.h index 6e2cc968e..bb6b10586 100644 --- a/sdrbase/mainwindow.h +++ b/sdrbase/mainwindow.h @@ -105,6 +105,7 @@ private: int m_lastEngineState; QLabel* m_dateTimeWidget; + QLabel* m_showSystemWidget; QWidget* m_inputGUI;