summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-16 16:30:18 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2022-09-22 18:09:12 +0200
commit1ca6c7522bbd6ee9ea711e17f98d8c96c8e8c45a (patch)
tree26befb29bff72f368636131634ef1fb61f8200fc /tests
parent359a2b2be21d3a8b209c1a7953675a5e2d002f5b (diff)
downloadqtlocation-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>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/mapitems_backends/main.qml4
-rw-r--r--tests/manual/mapobjects_tester/main.qml4
-rw-r--r--tests/manual/mappolyline_tester/main.qml4
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)