summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_ui/tst_map_mouse.qml
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2012-07-27 12:58:48 +1000
committerQt by Nokia <qt-info@nokia.com>2012-08-24 05:28:08 +0200
commit1549d59e448550f05c5bd1ea6a9da5d1e78c7f26 (patch)
treea4163bbe7adcb9eeec31d8d9b12399f2cd3cb5cc /tests/auto/declarative_ui/tst_map_mouse.qml
parent5c8ad55eefd482bdb91d314502289df82c1bc9ad (diff)
downloadqtlocation-1549d59e448550f05c5bd1ea6a9da5d1e78c7f26.tar.gz
Convert Coordinate into a QML coordinate value type.
This replaces the Coordinate QML element with a value type. A value type is a better fit for a coordinate. It is very similar to a vector3d except it has an explicit coordinate system and some utility functions. Declare QGeoCoordinate as a movable type. Update documentation. Change-Id: I758fa9dfd7154a4d60fb791fe553b9fee3164c2c Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'tests/auto/declarative_ui/tst_map_mouse.qml')
-rw-r--r--tests/auto/declarative_ui/tst_map_mouse.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/declarative_ui/tst_map_mouse.qml b/tests/auto/declarative_ui/tst_map_mouse.qml
index eb715fb6..ce656f66 100644
--- a/tests/auto/declarative_ui/tst_map_mouse.qml
+++ b/tests/auto/declarative_ui/tst_map_mouse.qml
@@ -82,7 +82,6 @@ Item {
height: 120
// General-purpose elements for the test:
Plugin { id: testPlugin; name : "qmlgeo.test.plugin";}
- Coordinate{ id: mapDefaultCenter; latitude: 20; longitude: 20}
MapMouseEvent{
id: mapMouseEvent
@@ -103,7 +102,11 @@ Item {
Map {
id: map;
x: 0; y: 0; width: 100; height: 100
- center: mapDefaultCenter
+ center {
+ latitude: 20
+ longitude: 20
+ }
+
plugin: testPlugin;
property real lastWheelAngleDeltaX: 0