Mercurial > retraceit
comparison 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 |
comparison
equal
deleted
inserted
replaced
4:e4748da7140b | 5:107e435cb569 |
---|---|
61 connect (mPlayer, &PNGPlayer::advance, mDataView, &MetaDataView::selectNextRow); | 61 connect (mPlayer, &PNGPlayer::advance, mDataView, &MetaDataView::selectNextRow); |
62 connect (mPlayer, &PNGPlayer::back, mDataView, &MetaDataView::selectPrevRow); | 62 connect (mPlayer, &PNGPlayer::back, mDataView, &MetaDataView::selectPrevRow); |
63 connect (mPlayer, &PNGPlayer::jumpToFrame, mDataView, &MetaDataView::selectRow); | 63 connect (mPlayer, &PNGPlayer::jumpToFrame, mDataView, &MetaDataView::selectRow); |
64 connect (mDataView, &MetaDataView::selectionChanged, mPlayer, | 64 connect (mDataView, &MetaDataView::selectionChanged, mPlayer, |
65 &PNGPlayer::showPicture); | 65 &PNGPlayer::showPicture); |
66 mPlayer->setSpeed(mSettings.value(REPLAY_SPEED_KEY, REPLAY_SPEED_DEFAULT).toInt()); | 66 connect (mDataView, &MetaDataView::selectionChanged, this, |
67 &MainWindow::showPictureNameStatus); | |
67 } | 68 } |
68 | 69 |
69 void MainWindow::showErrorMessage(const QString& errMsg) { | 70 void MainWindow::showErrorMessage(const QString& errMsg) { |
70 QMessageBox::warning(this, tr("Error!"), errMsg); | 71 QMessageBox::warning(this, tr("Error!"), errMsg); |
71 statusBar()->showMessage(errMsg); | 72 statusBar()->showMessage(errMsg); |
147 qDebug() << "Parsed: " << metaData.filePath(); | 148 qDebug() << "Parsed: " << metaData.filePath(); |
148 mCurFolder = folder; | 149 mCurFolder = folder; |
149 mPlayer->setBaseDir(folder); | 150 mPlayer->setBaseDir(folder); |
150 mDataView->selectNextRow(); | 151 mDataView->selectNextRow(); |
151 } | 152 } |
153 | |
154 void MainWindow::showPictureNameStatus(const QString& fileName, int current, | |
155 int max, const QDateTime& timestamp) { | |
156 if (current != 0 && max != 0) { | |
157 statusBar()->showMessage(tr("Showing: '%1'").arg(fileName)); | |
158 } | |
159 } |