diff src/mainwindow.cpp @ 5:107e435cb569

Enable speed slider in pngplayer
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 25 Mar 2015 14:24:38 +0100
parents 248d5d1cdb38
children e3c8f61e45a9
line wrap: on
line diff
--- a/src/mainwindow.cpp	Wed Mar 25 14:23:46 2015 +0100
+++ b/src/mainwindow.cpp	Wed Mar 25 14:24:38 2015 +0100
@@ -63,7 +63,8 @@
     connect (mPlayer, &PNGPlayer::jumpToFrame, mDataView, &MetaDataView::selectRow);
     connect (mDataView, &MetaDataView::selectionChanged, mPlayer,
              &PNGPlayer::showPicture);
-    mPlayer->setSpeed(mSettings.value(REPLAY_SPEED_KEY, REPLAY_SPEED_DEFAULT).toInt());
+    connect (mDataView, &MetaDataView::selectionChanged, this,
+             &MainWindow::showPictureNameStatus);
 }
 
 void MainWindow::showErrorMessage(const QString& errMsg) {
@@ -149,3 +150,10 @@
     mPlayer->setBaseDir(folder);
     mDataView->selectNextRow();
 }
+
+void MainWindow::showPictureNameStatus(const QString& fileName, int current,
+            int max, const QDateTime& timestamp) {
+    if (current != 0 && max != 0) {
+        statusBar()->showMessage(tr("Showing: '%1'").arg(fileName));
+    }
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)