diff options
author | Arno <arno@disconnect.de> | 2017-03-05 19:26:57 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-03-05 19:26:57 +0100 |
commit | 99be819b6c90707a4df38ac391b0bdf1e31b4332 (patch) | |
tree | 50470b6829c6dc1f9b51fc242cf48bf4e5d6bdbd /playerwidget.h | |
parent | ee0b460145fd1edd0f76bbbf3680b9ebea927940 (diff) | |
download | BeetPlayer-99be819b6c90707a4df38ac391b0bdf1e31b4332.tar.gz BeetPlayer-99be819b6c90707a4df38ac391b0bdf1e31b4332.tar.bz2 BeetPlayer-99be819b6c90707a4df38ac391b0bdf1e31b4332.zip |
Fix player status
Display the appropriate status in statusBar. Don't use
QMediaPlayer::State, but QMediaStatus::MediaStatus to signal EOF.
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/playerwidget.h b/playerwidget.h index 14df101..4a152f6 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -33,6 +33,8 @@ class PlayerWidget : public QWidget { void doPopulateByFolder(QString dir = QString()); void viewDoubleClicked(const QModelIndex &idx); void doPlay(); + void doStop(); + void doPause(); void doFilter(); void clearFilter(); void reindex(); @@ -50,7 +52,7 @@ class PlayerWidget : public QWidget { void setPosition(qint64 pos); void setDuration(qint64 dur); void slide(int value); - void continuePlaying(QMediaPlayer::State state); + void continuePlaying(QMediaPlayer::MediaStatus state); void expand(); signals: @@ -90,6 +92,7 @@ class PlayerWidget : public QWidget { QToolBar *mToolBar; QAction *mPlayA; QAction *mStopA; + QAction *mPauseA; qint64 mDurSecs; quint64 mPlayListLength; }; |