Fix flicker when changing ListView currentIndex with VisualItemModel.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 28 May 2012 04:06:13 +0000 (14:06 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 May 2012 05:17:09 +0000 (07:17 +0200)
commit81726bcb8d2ea58f785f7d1f3bb3de8bb089d6ec
tree545b9c91d4973998e8045661b6d2807ab15a84dc
parent2533a40cf26ded5b777aae6b3c49813a044ab735
Fix flicker when changing ListView currentIndex with VisualItemModel.

Return the Referenced flag when the view has outstanding references
otherwise it will attempt to hide an item if believes shouldn't be
visible.

Task-number: QTBUG-25849
Change-Id: I7387ab8322a1cd7f3386685086b2b8ad10c8b4f0
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickvisualitemmodel.cpp
tests/auto/quick/qquicklistview/data/itemlist-flicker.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp