summaryrefslogtreecommitdiff
path: root/examples/declarative/flickr/flickrmobile/GeoTab.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 /examples/declarative/flickr/flickrmobile/GeoTab.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 'examples/declarative/flickr/flickrmobile/GeoTab.qml')
-rw-r--r--examples/declarative/flickr/flickrmobile/GeoTab.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/declarative/flickr/flickrmobile/GeoTab.qml b/examples/declarative/flickr/flickrmobile/GeoTab.qml
index b5342609..596abccd 100644
--- a/examples/declarative/flickr/flickrmobile/GeoTab.qml
+++ b/examples/declarative/flickr/flickrmobile/GeoTab.qml
@@ -41,17 +41,19 @@
import QtQuick 2.0
import QtLocation 5.0
-
Rectangle {
id: container
property int maxX: parent.width; property int maxY: parent.height
//! [props]
- property double latitude
- property double longitude
- latitude: positionSource.position.coordinate.latitude
- longitude: positionSource.position.coordinate.longitude
+ property variant coordinate
//! [props]
+ Binding {
+ target: container
+ property: "coordinate"
+ value: positionSource.position.coordinate
+ }
+
width: 300; height: 130
color: "blue"
opacity: 0.7