Don't create a separate section header for currentItem
authorMartin Jones <martin.jones@nokia.com>
Thu, 23 Feb 2012 06:57:06 +0000 (16:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 27 Feb 2012 01:43:19 +0000 (02:43 +0100)
commit15dac112df4f44ba8b15047720e1570fd4096f26
tree1aa1f1fe0caec4d8a3a24db4ec7fa59fd39c7555
parentd2921ffc52fed380326f8abb86d6d659cc47f9d1
Don't create a separate section header for currentItem

The currentItem FxViewItem contained it's own section item,
which when created would cause the current item delegate
to be repositioned.  This change associates the section item
with the delegate item, via the attached object.

Change-Id: Ie675d545539b56d0f1cf5a9b4ea26668978a5e72
Reviewed-by: Bea Lam <bea.lam@nokia.com>
src/quick/items/qquickitemview.cpp
src/quick/items/qquickitemview_p_p.h
src/quick/items/qquicklistview.cpp
src/quick/items/qquicklistview_p.h
tests/auto/qtquick2/qquicklistview/data/sectionpropertychange.qml [new file with mode: 0644]
tests/auto/qtquick2/qquicklistview/tst_qquicklistview.cpp