From: Flavio Date: Tue, 21 Oct 2014 20:11:21 +0000 (+0200) Subject: Loading icon X-Git-Tag: 2.3~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea6a0f48768ea63cc930e3cbd3e4e2d66380f4ea;p=minitube Loading icon --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1602b9a..b03d59a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -287,8 +287,8 @@ void MainWindow::createActions() { actions->insert("skip", skipAct); connect(skipAct, SIGNAL(triggered()), mediaView, SLOT(skip())); - pauseAct = new QAction(IconUtils::icon("media-playback-pause"), tr("&Pause"), this); - pauseAct->setStatusTip(tr("Pause playback")); + pauseAct = new QAction(IconUtils::icon("media-playback-start"), tr("&Play"), this); + pauseAct->setStatusTip(tr("Resume playback")); pauseAct->setShortcuts(QList() << QKeySequence(Qt::Key_Space) << QKeySequence(Qt::Key_MediaPlay)); pauseAct->setEnabled(false); actions->insert("pause", pauseAct); @@ -1065,6 +1065,9 @@ void MainWindow::stateChanged(Phonon::State newState, Phonon::State /* oldState case Phonon::StoppedState: pauseAct->setEnabled(false); + pauseAct->setIcon(IconUtils::icon("media-playback-start")); + pauseAct->setText(tr("&Play")); + pauseAct->setStatusTip(tr("Resume playback") + " (" + pauseAct->shortcut().toString(QKeySequence::NativeText) + ")"); // stopAct->setEnabled(false); break; @@ -1077,6 +1080,12 @@ void MainWindow::stateChanged(Phonon::State newState, Phonon::State /* oldState break; case Phonon::BufferingState: + pauseAct->setEnabled(false); + pauseAct->setIcon(IconUtils::icon("content-loading")); + pauseAct->setText(tr("&Loading...")); + pauseAct->setStatusTip(QString()); + break; + case Phonon::LoadingState: pauseAct->setEnabled(false); currentTime->clear();