comparison 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
comparison
equal deleted inserted replaced
86:a32406f8832f 87:3b3a1384eb5f
65 QPushButton *backBtn = new QPushButton; 65 QPushButton *backBtn = new QPushButton;
66 backBtn->setIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowBack)); 66 backBtn->setIcon(QApplication::style()->standardIcon(QStyle::SP_ArrowBack));
67 backBtn->setToolTip(tr("Back to exam selection.")); 67 backBtn->setToolTip(tr("Back to exam selection."));
68 tabWidget->setCornerWidget(backBtn, Qt::TopLeftCorner); 68 tabWidget->setCornerWidget(backBtn, Qt::TopLeftCorner);
69 69
70 QLabel *versionLabel = new QLabel("<small>" + tr("Version: %1").arg(VERSION) + "</small>");
71 statusBar()->insertPermanentWidget(0, versionLabel);
72
70 connect (backBtn, &QPushButton::clicked, this, &MainWindow::goBack); 73 connect (backBtn, &QPushButton::clicked, this, &MainWindow::goBack);
71 connect (mPlayer, &PNGPlayer::error, this, &MainWindow::showErrorMessage); 74 connect (mPlayer, &PNGPlayer::error, this, &MainWindow::showErrorMessage);
72 connect (mPlayer, &PNGPlayer::advance, mDataView, &MetaDataView::selectNextRow); 75 connect (mPlayer, &PNGPlayer::advance, mDataView, &MetaDataView::selectNextRow);
73 connect (mPlayer, &PNGPlayer::back, mDataView, &MetaDataView::selectPrevRow); 76 connect (mPlayer, &PNGPlayer::back, mDataView, &MetaDataView::selectPrevRow);
74 connect (mPlayer, &PNGPlayer::jumpToFrame, mDataView, &MetaDataView::selectRow); 77 connect (mPlayer, &PNGPlayer::jumpToFrame, mDataView, &MetaDataView::selectRow);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)