mirror of https://github.com/qt/qtdatavis3d.git
Fix overriding FINAL property
Pick-to: 6.7 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>
This commit is contained in:
parent
f8c0e248a2
commit
4d9b680794
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue