vlc | branch: master | Fatih Uzunoglu <[email protected]> | 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 <[email protected]>

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

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to