diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-03-01 16:42:56 +0100 |
|---|---|---|
| committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-03-02 19:31:16 +0000 |
| commit | 22aafc46ade65ca042d0f2507abc43b9380b4cbc (patch) | |
| tree | e7e92c99f686fab839e5142a46ced794f45ecb3c | |
| parent | 22e00e4142d82b79d1f860aac4ae60eb49263a2e (diff) | |
ListView: Mention section's support for required properties
It was used in the code snippet, but we didn't explain so far why it was
there.
Change-Id: I53005d897f4a3732b7707c7cc0e88f2842ca7433
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
(cherry picked from commit a703701394820fcfffb544a5bf7c464410cdc0a2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
| -rw-r--r-- | src/quick/items/qquicklistview.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index caf1591631..043c5e08d3 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2711,7 +2711,8 @@ void QQuickListView::setOrientation(QQuickListView::Orientation orientation) \c section.delegate holds the delegate component for each section. The default \l {QQuickItem::z}{stacking order} of section delegate instances - is \c 2. + is \c 2. If you declare a \c required property named "section" in it, + that property will contain the section's title. \c section.labelPositioning determines whether the current and/or next section labels stick to the start/end of the view, and whether |
