diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-06-29 17:06:53 +1000 |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2011-07-12 05:10:51 +0200 |
commit | 402d3210e78827b46b1434b723b21d208ca9b365 (patch) | |
tree | 2e78d2fce5c8675d123ce62db5424bec8b1caf70 /examples | |
parent | b7784d3acdfae1cc85e358b634eb2d01a6c5ec10 (diff) | |
download | qtlocation-402d3210e78827b46b1434b723b21d208ca9b365.tar.gz |
Use the same Coordinate for all searches.
A slightly different location was used for the various search queries
in qmlplaces.
Change-Id: Ibdaa46e3373a955990bb84b5365f75fca6dad659
Reviewed-on: http://codereview.qt.nokia.com/1396
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: abcd <qt_abcd1@ovi.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/declarative/qmlplaces/qmlplaces.qml | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/examples/declarative/qmlplaces/qmlplaces.qml b/examples/declarative/qmlplaces/qmlplaces.qml index 2fd051dc..55fb83b3 100644 --- a/examples/declarative/qmlplaces/qmlplaces.qml +++ b/examples/declarative/qmlplaces/qmlplaces.qml @@ -6,6 +6,12 @@ Rectangle { width: 640 height: 360 + property Coordinate searchCoordinate: Coordinate { + // Brisbane + longitude: 153.02778 + latitude: -27.46778 + } + Text { id: queryText text: "Query:" @@ -196,11 +202,7 @@ Rectangle { SearchResultModel { id: resultModel - searchCenter: - Coordinate { - latitude: 53 - longitude: 10 - } + searchCenter: searchCoordinate didYouMean: 5 //onQueryFinished: console.log("datareceived " + error) } @@ -225,11 +227,7 @@ Rectangle { TextPredictionModel { id: resultSuggestion - searchCenter: - Coordinate { - latitude: 50.05 - longitude: 19.90 - } + searchCenter: searchCoordinate offset: 0 limit: 15 searchTerm: search_term.text @@ -237,18 +235,12 @@ Rectangle { RecommendationModel { id: recommendationModel - searchCenter: - Coordinate { - latitude: 50.05 - longitude: 19.90 - } + searchCenter: searchCoordinate offset: 0 limit: 15 //onQueryFinished: console.log("datareceived " + error) } - - SupportedCategoriesModel { id: categoriesModel } |