From 9996b1f89c70b00427477c98abe93c5696d993c6 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Mon, 2 Sep 2019 07:00:13 +0200 Subject: Replace the stop button of the media preview by a pause button Summary: Stop is not as useful as paused plus it makes the button coherent with the click to play/pause feature. CCBUG: 364957 Test Plan: {F7305382} Reviewers: #dolphin, elvisangelaccio, ngraham Reviewed By: #dolphin, ngraham Subscribers: ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D23648 --- src/panels/information/phononwidget.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/panels/information/phononwidget.h') diff --git a/src/panels/information/phononwidget.h b/src/panels/information/phononwidget.h index 90a1d1e5a..961443d2e 100644 --- a/src/panels/information/phononwidget.h +++ b/src/panels/information/phononwidget.h @@ -89,11 +89,13 @@ class PhononWidget : public QWidget void applyVideoSize(); private: + void togglePlayback(); + QUrl m_url; QSize m_videoSize; QToolButton *m_playButton; - QToolButton *m_stopButton; + QToolButton *m_pauseButton; QVBoxLayout *m_topLayout; Phonon::MediaObject *m_media; -- cgit v1.3.1