Fix section delegates not updating when changed.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Tue, 26 Jun 2012 03:13:11 +0000 (13:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 06:08:33 +0000 (08:08 +0200)
commit3bb4880d63e0ebc972d500d3c7538127cd709a5d
tree802038e59bba2d265a57ff18739278a8f64b529b
parent4089c2bbc51717a642f17c76c17c9ca73e180f00
Fix section delegates not updating when changed.

Delete all allocated section items before doing an update when the
section delegate is changed.

Task-number: QTBUG-24899
Change-Id: I09dc7a1c602a49ad7bb37512a7e5116392259457
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquicklistview/data/sectiondelegatechange.qml [new file with mode: 0644]
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp