diff options
author | Tomi Korpipaa <tomi.korpipaa@qt.io> | 2024-03-15 09:57:51 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-03-15 10:55:21 +0000 |
commit | 7c6d4704da4cc053dec7cfcf5fd1357bfe52a25c (patch) | |
tree | 6581bb034564591ebe34dc2631bedbd0bb93ae84 | |
parent | ee4c2fa2630d1a7984055c8d351f813f54023754 (diff) |
Fix overriding FINAL property
Fixes: QTBUG-122209
Change-Id: I2492901edcf355772ee2524fcc3109a207105ab2
Reviewed-by: Chris René Lerner <chris.lerner@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 4d9b6807948d641d36ecdf1c1a2df7365c14f097)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tests/manual/qmldynamicdata/qml/qmldynamicdata/main.qml | 11 |
1 files 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); } } } |