From eaec53a7af4e098acd957a274f059920d569e0be Mon Sep 17 00:00:00 2001 From: Méven Car Date: Tue, 27 Aug 2019 13:04:56 +0200 Subject: Add click to play/pause feature on previews for audio/video Test Plan: In dolphin, click on a video or audio preview in the information panel. The video or audio preview starts Reviewers: elvisangelaccio, #dolphin, ngraham Reviewed By: elvisangelaccio, #dolphin, ngraham Subscribers: alexde, anthonyfieroni, ngraham, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D22183 --- src/panels/information/phononwidget.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/panels/information/phononwidget.h') diff --git a/src/panels/information/phononwidget.h b/src/panels/information/phononwidget.h index b9e7d4f05..90a1d1e5a 100644 --- a/src/panels/information/phononwidget.h +++ b/src/panels/information/phononwidget.h @@ -53,11 +53,14 @@ class PhononWidget : public QWidget void setUrl(const QUrl &url, MediaKind kind); QUrl url() const; + void clearUrl(); void setVideoSize(const QSize& size); QSize videoSize() const; + Phonon::State state() const; void setAutoPlay(bool autoPlay); + bool eventFilter(QObject *object, QEvent *event) override; signals: /** -- cgit v1.3