diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-12-22 18:17:19 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-07-05 06:09:56 +0000 |
commit | f8df5799b68fcb8690462b6dce226e6ce9bac282 (patch) | |
tree | c88fbdc8b4bd28662cfe3c14d665c4744fc29057 /src/imports/location | |
parent | 5ccc595db4e9282f6a58f8712550eda935a6eecb (diff) | |
download | qtlocation-f8df5799b68fcb8690462b6dce226e6ce9bac282.tar.gz |
Enable incremental updates in PlaceSearchModel
This way pages can be changed without resetting the model.
To achieve this, new members into QPlaceSearchRequestPrivate
are introduced, to keep the relationship between a request
for one page, and the previous or the next page.
In this way sparse population of the model becomes possible.
Change-Id: Ic8db0281408f3500ba83f78c7e152ee0b68cd099
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/imports/location')
-rw-r--r-- | src/imports/location/location.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/location/location.cpp b/src/imports/location/location.cpp index fc2b62c3..b632836f 100644 --- a/src/imports/location/location.cpp +++ b/src/imports/location/location.cpp @@ -189,6 +189,7 @@ public: // Register the 5.12 types minor = 12; qmlRegisterType<QDeclarativeGeoMapItemView, 12>(uri, major, minor, "MapItemView"); + qmlRegisterType<QDeclarativeSearchResultModel, 12>(uri, major, minor, "PlaceSearchModel"); // Register the latest Qt version as QML type version qmlRegisterModule(uri, QT_VERSION_MAJOR, QT_VERSION_MINOR); |