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 20:16:16 +0000 |
commit | f568f1ead957c217b4d1d3e9393e1a48920dd98b (patch) | |
tree | 98f2d9df98a733911bd5da921fcdb78acee8e56e | |
parent | 5340581f9f0759308318658dcfe15157614adb04 (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 14ff95163f..a4b34c8088 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -2741,7 +2741,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 |