Fix refill where zero-size items are involved
authorBea Lam <bea.lam@nokia.com>
Thu, 10 Nov 2011 04:30:08 +0000 (14:30 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 16 Nov 2011 03:39:26 +0000 (04:39 +0100)
commit80615c3036e689061588a144339125b7fb8e66e5
tree195ce893dd0a15d486550b2a8a08b285b9ec3102
parenteef97750eb1c5b33ed8e0e8c0d1bbf6385239701
Fix refill where zero-size items are involved

881091b5c0f1d2ead2b70e54f7ac2e4c17680b4e was incorrect since it meant
that any items following zero-sized delegates would not be deleted as
they scrolled up past the top of the view.

refill() should be deleting these items as well as any zero-sized items
before them.

Task-number: QTBUG-22014
Change-Id: I10cd30bb85a8ec1ddaa2a1cbaa924192536ef6fc
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/items/qquicklistview.cpp
tests/auto/declarative/qquicklistview/tst_qquicklistview.cpp