Fix content pos adjustment when resizing first item
authorBea Lam <bea.lam@nokia.com>
Mon, 30 Apr 2012 02:55:45 +0000 (12:55 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 May 2012 05:34:12 +0000 (07:34 +0200)
commit9a107f47ea50f40ce6b9695fba0190b99f76642a
treebc033c8f9dea88344bda4833719288df587b3e31
parent01eb4d93c5894dbee6210712454a28e9fe9a680f
Fix content pos adjustment when resizing first item

If visibleItems.first() changes size in a ListView, the size change
should be made in the direction of the content flow. This was not
working correctly for layouts other than the default vertical+LTR
layout. This patch fixes the issue for other layouts and also fixes
resizing of implicitly sized delegates (e.g. positioners) within the
default layout.

Change-Id: Ib1d84ce000a3a341fe617cf644420dc5d589d577
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquicklistview/data/repositionResizedDelegate.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp