diff src/mainwindow.cpp @ 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 11aaa9214cfb
children c3000fa6ca56
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)