summaryrefslogtreecommitdiff
path: root/tests/applications
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@nokia.com>2011-11-30 12:54:26 +0200
committerQt by Nokia <qt-info@nokia.com>2011-12-01 08:17:47 +0100
commitcfb215c98866b00f11d3e20b4b92b1fe22387be4 (patch)
tree5590137ca4930ecf228deb70181ec9cf7e6d4a72 /tests/applications
parent1b8b61028e37d6d4a8d8f069867f12f94a08225a (diff)
downloadqtlocation-cfb215c98866b00f11d3e20b4b92b1fe22387be4.tar.gz
Renamed and reorganized QML Map item files and elements.
Current plan is to have generic 'QML item' mapitem type (map quick item) and selected map specific items (at least map route item, map polygon item, map circle item). Change-Id: I5a9d1705051595476098d346e5fd3c3500ec7810 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
Diffstat (limited to 'tests/applications')
-rw-r--r--tests/applications/declarative_map/map3d.qml33
1 files changed, 18 insertions, 15 deletions
diff --git a/tests/applications/declarative_map/map3d.qml b/tests/applications/declarative_map/map3d.qml
index 8082ab88..cd075a33 100644
--- a/tests/applications/declarative_map/map3d.qml
+++ b/tests/applications/declarative_map/map3d.qml
@@ -71,7 +71,7 @@ Item {
Text {text: "Crazy mode:\n" + testModel.crazyMode + "\nclick to\ntoggle."}
MouseArea{ anchors.fill: parent;
onClicked: testModel.crazyMode = !testModel.crazyMode
- onDoubleClicked: map.removeMapScreenItem(mapItem1)
+ onDoubleClicked: map.removeMapItem(mapItem1)
}
}
AnimatedImage {
@@ -84,14 +84,14 @@ Item {
Rectangle {color: "lightblue"; width: 80; height: 80;
Text {text: "Click:\nadd item1\nDouble-click:\nrm item1"}
MouseArea{ anchors.fill: parent;
- onClicked: {console.log('----------------adding item 1'); map.addMapScreenItem(externalStaticMapItem1);}
- onDoubleClicked: {console.log('+++++++++++++++ removing item 1'); map.removeMapScreenItem(externalStaticMapItem1);}
+ onClicked: {console.log('----------------adding item 1'); map.addMapItem(externalStaticMapItem1);}
+ onDoubleClicked: {console.log('+++++++++++++++ removing item 1'); map.removeMapItem(externalStaticMapItem1);}
}
}
Rectangle {color: "lightblue"; width: 80; height: 80;
Text {text: "Click:\nadd item2\nDouble-click:\nrm item2"}
MouseArea{ anchors.fill: parent;
- onClicked: {console.log('adding item 2'); map.addMapScreenItem(externalStaticMapItem2);}
+ onClicked: {console.log('adding item 2'); map.addMapItem(externalStaticMapItem2);}
onDoubleClicked: {console.log('removing item 2'); map.removeMapItem(externalStaticMapItem2);}
}
}
@@ -244,9 +244,14 @@ Item {
}
}
*/
+ MapCircle {
+ center: londonCoordinate
+ radius: 1000
+ color: 'red'
+ }
- MapScreenItem {
- objectName: "blinky screen item 1"
+ MapQuickItem {
+ objectName: "blinky quick item 1"
coordinate: Coordinate { latitude: -19; longitude : 146 }
sourceItem: AnimatedImage {
width: 80
@@ -257,7 +262,7 @@ Item {
}
Coordinate {id: londonCoordinate; latitude: 51.5; longitude: -0.11}
- MapScreenItem {
+ MapQuickItem {
MapMouseArea {
id: mapMouseAreaUpperPurple
z: 100
@@ -305,7 +310,7 @@ Item {
}
- MapScreenItem {
+ MapQuickItem {
z: 1
objectName: "mousetestrectanglelower"
coordinate: londonCoordinate
@@ -320,8 +325,8 @@ Item {
/*
- MapScreenItem {
- objectName: "blinky screen item 2"
+ MapQuickItem {
+ objectName: "blinky quick item 2"
coordinate: brisbaneCoordinate
anchorPoint: Qt.point(40, 40)
zoomLevel: 6.0
@@ -354,14 +359,13 @@ Item {
}
*/
- /*
MapItemView {
id: theObjectView
model: testModel
delegate: Component {
- MapScreenItem {
-// objectName: 'one of many items from model'
-// visible: true
+ MapQuickItem {
+ objectName: 'one of many items from model'
+ visible: true
zoomLevel: 7
sourceItem: Rectangle {
width: 300; height: 300; color: 'green'
@@ -391,7 +395,6 @@ Item {
}
}
}
- */
// From location.test plugin
PinchGenerator {