[vlc-commits] qml: fix itemClicked Signal

Abel Tesfaye git at videolan.org
Wed Aug 21 15:08:52 CEST 2019


vlc | branch: master | Abel Tesfaye <Abeltesfaye45 at gmail.com> | Wed Aug  7 17:55:18 2019 +0300| [492dad8be02f6076080bc1e97bb8884d8e9b1134] | committer: Jean-Baptiste Kempf

qml: fix itemClicked Signal

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/qt/qml/utils/ListItem.qml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/qml/utils/ListItem.qml b/modules/gui/qt/qml/utils/ListItem.qml
index 891e518b94..214d2d8045 100644
--- a/modules/gui/qt/qml/utils/ListItem.qml
+++ b/modules/gui/qt/qml/utils/ListItem.qml
@@ -28,7 +28,7 @@ NavigableFocusScope {
     id: root
     signal playClicked
     signal addToPlaylistClicked
-    signal itemClicked(int keys, int modifier)
+    signal itemClicked(int key, int modifier)
     signal itemDoubleClicked(int keys, int modifier)
     signal contextMenuButtonClicked(Item menuParent)
 
@@ -84,8 +84,9 @@ NavigableFocusScope {
             id: mouse
             anchors.fill: parent
             hoverEnabled: true
+            acceptedButtons: Qt.LeftButton | Qt.RightButton
             onClicked: {
-                root.itemClicked(mouse.buttons, mouse.modifiers);
+                root.itemClicked(mouse.button, mouse.modifiers);
             }
             onDoubleClicked: {
                 root.itemDoubleClicked(mouse.buttons, mouse.modifiers);



More information about the vlc-commits mailing list