summaryrefslogtreecommitdiff
path: root/tests/applications
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2011-11-10 13:20:48 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-11 08:24:59 +0100
commit0e9acdb3d4c18eb2fba298ef3b1d9ee9b6f348c1 (patch)
tree83fd927fca8a84d6ce55ef4ea242f7da1c9faaa2 /tests/applications
parent321b583905eda0cbe61749c8ad760fe83b46189d (diff)
downloadqtlocation-0e9acdb3d4c18eb2fba298ef3b1d9ee9b6f348c1.tar.gz
Initial work on pure QML map items.
Change-Id: I0d0ca9aa8ff1bc6c2dc9d08b7622519ca75ded54 Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests/applications')
-rw-r--r--tests/applications/declarative_map/map3d.qml32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/applications/declarative_map/map3d.qml b/tests/applications/declarative_map/map3d.qml
index bff6adc8..9a01de55 100644
--- a/tests/applications/declarative_map/map3d.qml
+++ b/tests/applications/declarative_map/map3d.qml
@@ -281,6 +281,38 @@ Item {
}
}
}
+
+ MapScreenItem {
+ objectName: "blinky screen item 1"
+ coordinate: Coordinate { latitude: -19; longitude : 146 }
+ sourceItem: AnimatedImage {
+ width: 80
+ height: 80
+ playing: true
+ source: "blinky.gif"
+ }
+ }
+
+
+ MapScreenItem {
+ objectName: "blinky screen item 2"
+ coordinate: brisbaneCoordinate
+ anchorPoint: Qt.point(40, 40)
+ zoomLevel: 6.0
+ sourceItem: AnimatedImage {
+ width: 80
+ height: 80
+ playing: true
+ source: "blinky.gif"
+ MouseArea {
+ anchors.fill: parent;
+ onClicked: {
+ parent.parent.zoomLevel += 1
+ }
+ }
+ }
+ }
+
MapItem {
objectName: 'blinky static item'
zoomLevel: 7 // at which map's zoom level the width and height are '1-to-1'