diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-02-20 15:43:08 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-02-25 08:01:23 +0000 |
commit | 351e07dc2c96f70867dca6aaf7d2eb2919ba3d01 (patch) | |
tree | b4ae04117d6d8657b4b9a4886bab2e658dfcf3f9 /src/location/doc/snippets/declarative/places_loader.qml | |
parent | ebf8bfec10bae10f14e03bee58b23915540490a2 (diff) | |
download | qtlocation-351e07dc2c96f70867dca6aaf7d2eb2919ba3d01.tar.gz |
Fix QtLocation QML snippets
Most of the snippets did not work and/or had outdated API usage.
Change-Id: Ib8949ab6d007c4eaa3638fb40473bf6d217edd36
Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/doc/snippets/declarative/places_loader.qml')
-rw-r--r-- | src/location/doc/snippets/declarative/places_loader.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/location/doc/snippets/declarative/places_loader.qml b/src/location/doc/snippets/declarative/places_loader.qml index d135b4c3..a52a4b04 100644 --- a/src/location/doc/snippets/declarative/places_loader.qml +++ b/src/location/doc/snippets/declarative/places_loader.qml @@ -45,6 +45,7 @@ import QtLocation 5.3 Rectangle { width: 360 height: 360 + property variant startCoordinate: QtPositioning.coordinate(-27.46778, 153.02778) Plugin { id: myPlugin @@ -61,7 +62,7 @@ Rectangle { plugin: myPlugin searchTerm: "pizza" - searchArea: QtLocation.circle( -27.46778, 153.02778 ) + searchArea: QtPositioning.circle(startCoordinate) Component.onCompleted: update() } |