Fix positioning of item when first cacheBuffer item is removed.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Mon, 23 Sep 2013 06:30:40 +0000 (16:30 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 19 Dec 2013 00:36:30 +0000 (01:36 +0100)
commit854272ecf9f26e77ddd8e3b7015cb8fe278183a5
treeb212a3055c38e6c1a8be3c22d82938ea6e23955d
parenta34eddbf7a68360ead218b2f5a9215e6b1ae88ec
Fix positioning of item when first cacheBuffer item is removed.

When items prior to the first visible item are removed from the instantiated
items list the first item is moved forward by the size of the item removed so
it position remains correct relative to the visible items.  But if the removed
item is the first instanitated item then it's size shouldn't contribute to the
offset as the next instatiated item is already offset by its size.

Task-number: QTBUG-33619

Change-Id: I05c33f505e2856afa08cd9cd89d8eae97c20679d
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
17 files changed:
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p_p.h
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquicklistview/data/addTransitions.qml
tests/auto/quick/qquicklistview/data/displacedTransitions.qml
tests/auto/quick/qquicklistview/data/header.qml
tests/auto/quick/qquicklistview/data/listview-enforcerange.qml
tests/auto/quick/qquicklistview/data/listview-noCurrent.qml
tests/auto/quick/qquicklistview/data/listview-sections-package.qml
tests/auto/quick/qquicklistview/data/listview-sections_delegate.qml
tests/auto/quick/qquicklistview/data/margins.qml
tests/auto/quick/qquicklistview/data/moveTransitions.qml
tests/auto/quick/qquicklistview/data/multipleDisplaced.qml
tests/auto/quick/qquicklistview/data/multipleTransitions.qml
tests/auto/quick/qquicklistview/data/populateTransitions.qml
tests/auto/quick/qquicklistview/data/removeTransitions.qml
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp