diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-07-21 18:55:37 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-04-17 13:36:34 +0000 |
commit | 572957bb1326190672ea138ccf475c0cf1893192 (patch) | |
tree | 7679c6062673a25af15a7b2cead6325316e87676 /src/location/declarativemaps/qdeclarativegeomap.cpp | |
parent | 9277ad55ad1a76492a3985460569d0a6fd15b08a (diff) | |
download | qtlocation-572957bb1326190672ea138ccf475c0cf1893192.tar.gz |
Fix MapItemView not setting context data upon item deletion
The current implementation does not properly re-set context data upon
model item deletion/change.
This patch uses a QQmlDelegateModel that does all the management internally.
To accommodate for items disappearing/reappearing all at once, potentially
introducing flickering, a fixed opacity transition 300msec long has been
introduced as exit transition.
In later Qt releases, new API can be added to let the user change it,
as well as also adding an enter transition and possibly more.
Task-number: QTBUG-62086
Task-number: QTBUG-65833
Change-Id: I59a8147a12f035d5c7f86c2546e9144b2e1a7b3c
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap.cpp b/src/location/declarativemaps/qdeclarativegeomap.cpp index f8218604..09f9d01c 100644 --- a/src/location/declarativemaps/qdeclarativegeomap.cpp +++ b/src/location/declarativemaps/qdeclarativegeomap.cpp @@ -503,9 +503,7 @@ void QDeclarativeGeoMap::populateParameters() */ void QDeclarativeGeoMap::setupMapView(QDeclarativeGeoMapItemView *view) { - Q_UNUSED(view) view->setMap(this); - view->repopulate(); } /*! |