diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-06-15 00:57:28 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-06-16 00:19:38 (GMT) |
commit | 0ee0c77738faaeced93980dab33867d42efcf2cc (patch) | |
tree | 18bb5dc4ba7fa4ddbe55c40d2e058fb9f45e6cc2 /src/declarative | |
parent | 4327443d7e25a055b9ecafe5d20acd96f3dfbab8 (diff) | |
download | Qt-0ee0c77738faaeced93980dab33867d42efcf2cc.zip Qt-0ee0c77738faaeced93980dab33867d42efcf2cc.tar.gz Qt-0ee0c77738faaeced93980dab33867d42efcf2cc.tar.bz2 |
Document section.delegate
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qdeclarativelistview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativelistview.cpp b/src/declarative/graphicsitems/qdeclarativelistview.cpp index dcf18af..48ac4a4 100644 --- a/src/declarative/graphicsitems/qdeclarativelistview.cpp +++ b/src/declarative/graphicsitems/qdeclarativelistview.cpp @@ -1936,6 +1936,8 @@ void QDeclarativeListView::setCacheBuffer(int b) /*! \qmlproperty string ListView::section.property \qmlproperty enumeration ListView::section.criteria + \qmlproperty Component ListView::section.delegate + These properties hold the expression to be evaluated for the \l section attached property. \c section.property hold the name of the property to use to determine @@ -1949,6 +1951,8 @@ void QDeclarativeListView::setCacheBuffer(int b) \o ViewSection.FirstCharacter - section is the first character of the property value. \endlist + \c section.delegate holds the delegate component for each section. + Each item in the list has attached properties named \c ListView.section and \c ListView.prevSection. These may be used to place a section header for related items. The example below assumes that the model is sorted by size of @@ -1985,7 +1989,7 @@ QString QDeclarativeListView::currentSection() const These properties hold the move and resize animation speed of the highlight delegate. - \c highlightFollowsCurrentItem must be true for these properties + \l highlightFollowsCurrentItem must be true for these properties to have effect. The default value for the speed properties is 400 pixels/second. |