Set all attached section properties before emitting change signals.
authorMartin Jones <martin.jones@jollamobile.com>
Fri, 29 Nov 2013 01:56:49 +0000 (11:56 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 30 Nov 2013 12:30:16 +0000 (13:30 +0100)
commit39b715f32a44c136271aecf2c3e28704cbf9e546
treee747e3b0323a829329e2de1d633656623420cbc1
parent7a94cd02f7f45a4b58b494ec81fa425725ca9e0c
Set all attached section properties before emitting change signals.

If we have bindings to the section properties, e.g. implementing manual
section header creation, we want previousSection, section and
nextSection to be set before emitting the change signals to prevent
different results each time the binding is run.

Change-Id: Id3a0b4a53419681f35102c9e7c620b5c6112ebb0
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
src/quick/items/qquickitemview_p.h
src/quick/items/qquicklistview.cpp
tests/auto/quick/qquicklistview/data/listview-sections.qml
tests/auto/quick/qquicklistview/tst_qquicklistview.cpp