[vlc-devel] [PATCH 15/29] qml: fix itemClicked Signal
Abel Tesfaye
abeltesfaye45 at gmail.com
Tue Aug 20 12:42:32 CEST 2019
From: Abel Tesfaye <Abeltesfaye45 at gmail.com>
---
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);
--
2.21.0
More information about the vlc-devel
mailing list