summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-04-21 06:17:46 (GMT)
committerMartin Jones <martin.jones@nokia.com>2011-04-21 06:55:37 (GMT)
commitf14ac31c86eeb53d0b08c799ad0ad895d17475d6 (patch)
treeddc070f709105d5bbaeb15e79664228e6631b3f8
parent60198a071dd76e57ab799215f0fbddc8d550ba30 (diff)
downloadQt-f14ac31c86eeb53d0b08c799ad0ad895d17475d6.zip
Qt-f14ac31c86eeb53d0b08c799ad0ad895d17475d6.tar.gz
Qt-f14ac31c86eeb53d0b08c799ad0ad895d17475d6.tar.bz2
Document section behavior when not ordered by section
Change-Id: Id0345d477c253a5dd54306b06dae1df971ec76fc Task-number: QTBUG-17757 Reviewed-by: Bea Lam
-rw-r--r--src/declarative/graphicsitems/qdeclarativelistview.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp
index 7c01293..2e9822e 100644
--- a/src/declarative/graphicsitems/qdeclarativelistview.cpp
+++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp
@@ -2302,11 +2302,19 @@ void QDeclarativeListView::setCacheBuffer(int b)
depending on the "size" property of the model item. The \c sectionHeading
delegate component provides the light blue bar that marks the beginning of
each section.
+
\snippet examples/declarative/modelviews/listview/sections.qml 0
\image qml-listview-sections-example.png
+ \note Adding sections to a ListView does not automatically re-order the
+ list items by the section criteria.
+ If the model is not ordered by section, then it is possible that
+ the sections created will not be unique; each boundary between
+ differing sections will result in a section header being created
+ even if that section exists elsewhere.
+
\sa {declarative/modelviews/listview}{ListView examples}
*/
QDeclarativeViewSection *QDeclarativeListView::sectionCriteria()