summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp
diff options
context:
space:
mode:
authorabcd <qt-info@nokia.com>2010-08-09 21:18:31 +1000
committerabcd <qt-info@nokia.com>2010-08-09 21:18:31 +1000
commitf86a00374c77c70515a23b1c3102f7e1f9398c37 (patch)
treedc037b9e50f5c016d79209b7701b62a552710960 /doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp
parente02fa82502bc79850458472f8f63039d54015866 (diff)
Remove QLandmarkFetchHint, replace with limit and offset vars
The QLandmarkFetchHint wasn't really a good place to put the limit and offset since it implies they can be ignored. The original intention of the fetch hint was to have a place to put hints for partial landmark retrieval. This wasn't and explicit use case placed upon us so we technically don't need it. If we need to have partial landmark retrieval we could always add it to the QLandmarkFetchRequest later.
Diffstat (limited to 'doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp')
-rw-r--r--doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp b/doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp
index f52c907e1b..efd4464529 100644
--- a/doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp
+++ b/doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp
@@ -390,10 +390,7 @@ void landmarkFetch(QLandmarkManager *lm)
distanceSort.setCoordinate(coordinate);
distanceSort.setDirection(Qt::AscendingOrder);
- QLandmarkFetchHint fetchHint;
- fetchHint.setMaxItems(5);
-
- landmarkManager->landmarks(filter, sortOrder, fetchHint);
+ landmarkManager->landmarks(filter, sortOrder, 5);
//! [Retrieve landmarks by proximity synchronously]
//! [Retrieve all landmarks synchronously]