From e1d4b61c2013d147e4b893cc350bfa8c66f4d2fe Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Tue, 5 Mar 2024 10:54:45 -0800 Subject: [PATCH] Add support to pass click position through signal --- src/QmlControls/MissionItemIndexLabel.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/QmlControls/MissionItemIndexLabel.qml b/src/QmlControls/MissionItemIndexLabel.qml index 52305cf..46c7d7e 100644 --- a/src/QmlControls/MissionItemIndexLabel.qml +++ b/src/QmlControls/MissionItemIndexLabel.qml @@ -10,7 +10,7 @@ Canvas { width: _width height: _height - signal clicked + signal clicked(point position) property string label ///< Label to show to the side of the index indicator property int index: 0 ///< Index to show in the indicator, 0 will show single char label instead, -1 first char of label in indicator full label to the side @@ -143,9 +143,9 @@ Canvas { QGCMouseArea { fillItem: mouseAreaFill - onClicked: { + onClicked: (mouse) => { focus = true - parent.clicked() + parent.clicked(Qt.point(mouse.x, mouse.y)) } } }