diff options
| author | abcd <qt-info@nokia.com> | 2010-08-09 21:18:31 +1000 |
|---|---|---|
| committer | abcd <qt-info@nokia.com> | 2010-08-09 21:18:31 +1000 |
| commit | f86a00374c77c70515a23b1c3102f7e1f9398c37 (patch) | |
| tree | dc037b9e50f5c016d79209b7701b62a552710960 /doc/src/snippets/qtlandmarksdocsample/qtlandmarksdocsample.cpp | |
| parent | e02fa82502bc79850458472f8f63039d54015866 (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.cpp | 5 |
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] |
