summaryrefslogtreecommitdiff
path: root/examples/location/places_list/places_list.qml
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-07-10 13:55:17 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-07-13 10:33:33 +0000
commita990d458f752aedb8b91aeafb4a62bb7c8ed4c50 (patch)
tree6cb8bc9ccaf4d55e9c3325029fb501f24800ab09 /examples/location/places_list/places_list.qml
parent5e71363485b3760601544f6365b039ef3b986123 (diff)
downloadqtlocation-a990d458f752aedb8b91aeafb4a62bb7c8ed4c50.tar.gz
Update places-list and places-map examples
Change position used in examples to Oslo. Update marker icons to be the same as in mapviewer example. Update screenshots, so they contain osm map. Add marker icon to places_list, so it does not look so boring. Add places title to places_map, so it is more readable. Change-Id: Ia321aa8577e77f76468c504cd4e6ce877712089c Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/location/places_list/places_list.qml')
-rw-r--r--examples/location/places_list/places_list.qml19
1 files changed, 11 insertions, 8 deletions
diff --git a/examples/location/places_list/places_list.qml b/examples/location/places_list/places_list.qml
index a15914e9..791d0aaf 100644
--- a/examples/location/places_list/places_list.qml
+++ b/examples/location/places_list/places_list.qml
@@ -40,14 +40,14 @@
//! [Imports]
import QtQuick 2.0
-import QtPositioning 5.2
-import QtLocation 5.3
+import QtPositioning 5.5
+import QtLocation 5.5
//! [Imports]
Rectangle {
width: 360
- height: 360
- property variant startCoordinate: QtPositioning.coordinate(-27.46778, 153.02778)
+ height: 640
+ property variant startCoordinate: QtPositioning.coordinate( 59.9485, 10.7686) // The Qt Company in Oslo
//! [Initialize Plugin]
Plugin {
@@ -79,12 +79,15 @@ Rectangle {
anchors.fill: parent
model: searchModel
delegate: Component {
- Column {
- Text { text: title }
- Text { text: place.location.address.text }
+ Row {
+ spacing: 5
+ Marker { height: parent.height }
+ Column {
+ Text { text: title; font.bold: true }
+ Text { text: place.location.address.text }
+ }
}
}
- spacing: 10
}
//! [Places ListView]