diff options
author | Andrew den Exter <[email protected]> | 2012-04-11 16:22:52 +1000 |
---|---|---|
committer | Qt by Nokia <[email protected]> | 2012-04-13 08:07:16 +0200 |
commit | 96c0e7e576b4b9a31bf7df362e26ebbc64f726f9 (patch) | |
tree | 0cae848593288b6db2c304a323aeb84671e33a80 /src/quick/items/qquicklistview.cpp | |
parent | f24f682c83ee08f1ceffc935def477e8a649e38a (diff) |
Don't ignore model changes when the ListView scroll position changes.
If there are pending changes when the ListView viewport changes then
do a full layout instead of a refill. Likewise for GridView and when
animations finish or the cacheBuffer size changes.
Change-Id: I57a2b01fee5729381558af366dad24ba26c223ef
Reviewed-by: Bea Lam <[email protected]>
Diffstat (limited to 'src/quick/items/qquicklistview.cpp')
-rw-r--r-- | src/quick/items/qquicklistview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index 1cc2637fe6..b65cb85465 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2557,7 +2557,7 @@ void QQuickListView::viewportMoved() else d->bufferMode = d->hData.smoothVelocity < 0 ? QQuickListViewPrivate::BufferBefore : QQuickListViewPrivate::BufferAfter; - d->refill(); + d->refillOrLayout(); // Set visibility of items to eliminate cost of items outside the visible area. qreal from = d->isContentFlowReversed() ? -d->position()-d->size() : d->position(); |