diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2012-08-16 13:32:43 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-28 10:07:49 +0200 |
commit | 059388adce26be48868cd741b4c5d751298fb4d8 (patch) | |
tree | 1a8a41c0f280b7ab3c502b49527bd609d1c0884a /doc/src/snippets/declarative/places.qml | |
parent | 7dd46f8c96a4bdaca2809ff97b773f358392516f (diff) |
Convert GeoShape, GeoRectangle and GeoCircle into QML value types.v5.0.0-beta1
This replaces the GeoShape, GeoRectangle and GeoCircle QML elements with
value types. A value type is a better fit for shape types. It is very
similar to a rect with some utility functions.
Declare QGeoShape, QGeoRectangle and QGeoCircle as movable types.
Update documentation.
Change-Id: Id6c48e1e841c68f2f0c5c6a9c4a6580a57e2dfb6
Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'doc/src/snippets/declarative/places.qml')
-rw-r--r-- | doc/src/snippets/declarative/places.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/doc/src/snippets/declarative/places.qml b/doc/src/snippets/declarative/places.qml index dbc7f8d6..11a0f3b3 100644 --- a/doc/src/snippets/declarative/places.qml +++ b/doc/src/snippets/declarative/places.qml @@ -128,13 +128,8 @@ Item { plugin: myPlugin - searchArea: GeoCircle { - center { - // Brisbane - longitude: 153.02778 - latitude: -27.46778 - } - } + // Brisbane + searchArea: QtLocation.circle(QtLocation.coordinate(-27.46778, 153.02778)) onSearchTermChanged: update() } |