From 1549d59e448550f05c5bd1ea6a9da5d1e78c7f26 Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Fri, 27 Jul 2012 12:58:48 +1000 Subject: 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 --- examples/declarative/flickr/flickrmobile/GeoTab.qml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'examples/declarative/flickr/flickrmobile/GeoTab.qml') 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 -- cgit v1.2.1