[vlc-commits] qml: stop player when play button is pressed and held

Fatih Uzunoglu git at videolan.org
Thu Aug 27 12:45:02 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Aug  7 21:27:27 2020 +0300| [539c69f303b0cd2c318b72a45eea055ac2a2be9f] | committer: Pierre Lamot

qml: stop player when play button is pressed and held

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=539c69f303b0cd2c318b72a45eea055ac2a2be9f
---

 modules/gui/qt/player/qml/ControlButtons.qml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/qt/player/qml/ControlButtons.qml b/modules/gui/qt/player/qml/ControlButtons.qml
index 21ccbf78b5..33b6e375a6 100644
--- a/modules/gui/qt/player/qml/ControlButtons.qml
+++ b/modules/gui/qt/player/qml/ControlButtons.qml
@@ -242,6 +242,11 @@ Item{
                             mainPlaylistController.togglePlayPause()
                     }
 
+                    onPressAndHold: {
+                        if (playBtn.realHovered)
+                            mainPlaylistController.stop()
+                    }
+
                 }
 
                 Rectangle {



More information about the vlc-commits mailing list