changeset 87:3b3a1384eb5f

Show Version number in status bar
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Jun 2015 19:35:22 +0200
parents a32406f8832f
children 3916cb3c9105
files src/mainwindow.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/mainwindow.cpp	Thu Jun 18 19:35:07 2015 +0200
+++ b/src/mainwindow.cpp	Thu Jun 18 19:35:22 2015 +0200
@@ -67,6 +67,9 @@
     backBtn->setToolTip(tr("Back to exam selection."));
     tabWidget->setCornerWidget(backBtn, Qt::TopLeftCorner);
 
+    QLabel *versionLabel = new QLabel("<small>" + tr("Version: %1").arg(VERSION) + "</small>");
+    statusBar()->insertPermanentWidget(0, versionLabel);
+
     connect (backBtn, &QPushButton::clicked, this, &MainWindow::goBack);
     connect (mPlayer, &PNGPlayer::error, this, &MainWindow::showErrorMessage);
     connect (mPlayer, &PNGPlayer::advance, mDataView, &MetaDataView::selectNextRow);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)