diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-16 16:30:18 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-22 18:09:12 +0200 |
commit | 1ca6c7522bbd6ee9ea711e17f98d8c96c8e8c45a (patch) | |
tree | 26befb29bff72f368636131634ef1fb61f8200fc | |
parent | 359a2b2be21d3a8b209c1a7953675a5e2d002f5b (diff) | |
download | qtlocation-1ca6c7522bbd6ee9ea711e17f98d8c96c8e8c45a.tar.gz |
Fix warning in manual tests
... and fix usability for rotation testing. Nice to get back to 0 again!
Change-Id: I9985721b0af993ff19d0808c29ac7ab617d3559a
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | tests/manual/mapitems_backends/main.qml | 4 | ||||
-rw-r--r-- | tests/manual/mapobjects_tester/main.qml | 4 | ||||
-rw-r--r-- | tests/manual/mappolyline_tester/main.qml | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/tests/manual/mapitems_backends/main.qml b/tests/manual/mapitems_backends/main.qml index d28605c9..d04f5474 100644 --- a/tests/manual/mapitems_backends/main.qml +++ b/tests/manual/mapitems_backends/main.qml @@ -47,7 +47,7 @@ Window { Shortcut { sequence: "Ctrl+R" onActivated: { - rotation = 57 + rotation += 30 } } @@ -125,7 +125,7 @@ Window { } MouseArea { anchors.fill: parent - onClicked: { + onClicked: (mouse) => { mouse.accepted = false var crd = map.toCoordinate(Qt.point(mouse.x, mouse.y)) var s = crd.toString(0) diff --git a/tests/manual/mapobjects_tester/main.qml b/tests/manual/mapobjects_tester/main.qml index 1e758ace..3651a382 100644 --- a/tests/manual/mapobjects_tester/main.qml +++ b/tests/manual/mapobjects_tester/main.qml @@ -49,7 +49,7 @@ Window { Shortcut { sequence: "Ctrl+R" onActivated: { - rotation = 57 + rotation += 30 } } @@ -107,7 +107,7 @@ Window { MouseArea { anchors.fill: parent - onClicked: { + onClicked: (mouse) => { mouse.accepted = false var crd = map.toCoordinate(Qt.point(mouse.x, mouse.y)) var s = crd.toString(0) diff --git a/tests/manual/mappolyline_tester/main.qml b/tests/manual/mappolyline_tester/main.qml index 82e67a21..c4e62942 100644 --- a/tests/manual/mappolyline_tester/main.qml +++ b/tests/manual/mappolyline_tester/main.qml @@ -46,7 +46,7 @@ Window { Shortcut { sequence: "Ctrl+R" onActivated: { - rotation = rotation + 36 + rotation += 30 } } @@ -101,7 +101,7 @@ Window { } MouseArea { anchors.fill: parent - onClicked: { + onClicked: (mouse) => { mouse.accepted = false var crd = map.toCoordinate(Qt.point(mouse.x, mouse.y)) var s = crd.toString(0) |