summaryrefslogtreecommitdiff
path: root/examples/location/places/places.qml
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@jollamobile.com>2014-01-16 14:32:21 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-20 02:11:24 +0100
commit1d0966c6924876655c52725e779a7aa24866ff60 (patch)
treebb7220ab3ccce1d057b80af33dbb8dd784d5782e /examples/location/places/places.qml
parent86db3df8cea7b9ac1e4ae078639de5fb5a43ca69 (diff)
downloadqtlocation-1d0966c6924876655c52725e779a7aa24866ff60.tar.gz
Remove offset attribute from place search requests.
Not all service providers support arbitrary search offsets. The offset attribute has been removed, instead service providers can supply a previous and next search query in the form of a QPlaceSearchRequest. Change-Id: If68e969b06f909f3fa62718656cbef70d1bf84a6 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'examples/location/places/places.qml')
-rw-r--r--examples/location/places/places.qml17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/location/places/places.qml b/examples/location/places/places.qml
index 6b4b32dd..4a144d55 100644
--- a/examples/location/places/places.qml
+++ b/examples/location/places/places.qml
@@ -366,7 +366,6 @@ Item {
recommendationId = "";
searchArea = searchRegion
limit = -1;
- offset = 0;
update();
}
@@ -376,7 +375,6 @@ Item {
recommendationId = "";
searchArea = searchRegion
limit = -1;
- offset = 0;
update();
}
@@ -386,21 +384,6 @@ Item {
recommendationId = placeId;
searchArea = null;
limit = -1;
- offset = 0;
- update();
- }
-
- function previousPage() {
- if (limit === -1)
- limit = count;
- offset = Math.max(0, offset - limit);
- update();
- }
-
- function nextPage() {
- if (limit === -1)
- limit = count;
- offset += limit;
update();
}