From 7c6d4704da4cc053dec7cfcf5fd1357bfe52a25c Mon Sep 17 00:00:00 2001 From: Tomi Korpipaa Date: Fri, 15 Mar 2024 09:57:51 +0200 Subject: Fix overriding FINAL property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-122209 Change-Id: I2492901edcf355772ee2524fcc3109a207105ab2 Reviewed-by: Chris René Lerner Reviewed-by: Kwanghyo Park Reviewed-by: Tomi Korpipää (cherry picked from commit 4d9b6807948d641d36ecdf1c1a2df7365c14f097) Reviewed-by: Qt Cherry-pick Bot --- tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml index 30b1087a..1d0e65bf 100644 --- a/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml +++ b/tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml @@ -129,12 +129,12 @@ Item { anchors.fill: parent hoverEnabled: true acceptedButtons: Qt.LeftButton | Qt.RightButton - property int mouseX: -1 - property int mouseY: -1 + property int mouseXPos: -1 + property int mouseYPos: -1 onPositionChanged: (mouse)=> { - mouseX = mouse.x; - mouseY = mouse.y; + mouseXPos = mouse.x; + mouseYPos = mouse.y; } onWheel: (wheel)=> { @@ -161,7 +161,8 @@ Item { running: true repeat: true onTriggered: { - scatterGraph.scene.selectionQueryPosition = Qt.point(inputArea.mouseX, inputArea.mouseY); + scatterGraph.scene.selectionQueryPosition = Qt.point(inputArea.mouseXPos, + inputArea.mouseYPos); } } } -- cgit v1.2.3