Additional ListView section header placement options
authorMartin Jones <martin.jones@nokia.com>
Tue, 20 Sep 2011 05:58:05 +0000 (15:58 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Sep 2011 22:23:56 +0000 (00:23 +0200)
commit7ecce2cc0e33bc6b1aa052163f9d6c1365b93b27
tree19a241c55900325c117aefb1ef4f88f83505a1cf
parentb4001eacd6472a3515a0eb7d80e845bd733d5bcd
Additional ListView section header placement options

Add a section.labelPositioning property which can be a combination
of:

- ViewSection.InlineLabels - section labels are shown inline between
  the item delegates separating sections (default).
- ViewSection.CurrentLabelAtStart - the current section label sticks to
  the start of the view as it is moved.
- ViewSection.NextLabelAtEnd - the next section label (beyond all visible
  sections) sticks to the end of the view as it is moved.

Task-number: QTBUG-12880
Change-Id: I4601828337412bd3a83769c9b8df3f6d4d7474b8
Reviewed-on: http://codereview.qt-project.org/5192
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bea Lam <bea.lam@nokia.com>
doc/src/declarative/whatsnew.qdoc
examples/declarative/modelviews/listview/content/ToggleButton.qml [new file with mode: 0644]
examples/declarative/modelviews/listview/sections.qml
src/declarative/items/qsglistview.cpp
src/declarative/items/qsglistview_p.h
tests/auto/declarative/qsglistview/data/listview-sections_delegate.qml
tests/auto/declarative/qsglistview/tst_qsglistview.cpp