[vlc-devel] [PATCH 31/38] qml: stop player when play button is pressed and held

Fatih Uzunoglu fuzun54 at outlook.com
Thu Aug 20 19:55:40 CEST 2020


---
 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 {
-- 
2.25.1



More information about the vlc-devel mailing list