aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Piekarski <thomas.piekarski@qt.io>2022-06-15 18:15:55 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-20 18:28:21 +0000
commit5506d399bf5aab7f265cf13d440f22659a755eee (patch)
tree1b739eef91f85d2f881a1c08c697eb2047dc4b35
parent2d8753fec6c9684d66efc6f43aff205fdfcb620e (diff)
Doc: Add missing CheckDelegate control and ingroup ItemDelegate
* Add missing ingroup command to ItemDelegate to be listed by annotatedlist command on qtquickcontrols2-delegates page * Add missing image and description for CheckDelegate Control on qtquickcontrols2-delegates page Task-number: QTBUG-104157 Change-Id: I0b8d830aeab348c763d4e716d5962258c9c82a77 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit f8e033ce94768852b85be53a52ccfade59bf06b0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quickcontrols2/doc/src/qtquickcontrols2-delegates.qdoc10
-rw-r--r--src/quicktemplates2/qquickitemdelegate.cpp1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/quickcontrols2/doc/src/qtquickcontrols2-delegates.qdoc b/src/quickcontrols2/doc/src/qtquickcontrols2-delegates.qdoc
index 77018f5602..a5ccb95bc3 100644
--- a/src/quickcontrols2/doc/src/qtquickcontrols2-delegates.qdoc
+++ b/src/quickcontrols2/doc/src/qtquickcontrols2-delegates.qdoc
@@ -16,6 +16,16 @@
sections offer guidelines for choosing the appropriate type of delegate,
depending on the use case.
+ \section1 CheckDelegate Control
+
+ \image qtquickcontrols2-checkdelegate.gif
+
+ \l CheckDelegate presents a checkable control that can be toggled on
+ (checked) or off (unchecked). Check delegates are typically used to
+ select one or more options from a set of options.
+
+ \b {See also} \l {CheckBox Control}.
+
\section1 ItemDelegate Control
\image qtquickcontrols2-itemdelegate.gif
diff --git a/src/quicktemplates2/qquickitemdelegate.cpp b/src/quicktemplates2/qquickitemdelegate.cpp
index cad450a7eb..d6b639d46c 100644
--- a/src/quicktemplates2/qquickitemdelegate.cpp
+++ b/src/quicktemplates2/qquickitemdelegate.cpp
@@ -15,6 +15,7 @@ QT_BEGIN_NAMESPACE
//! \instantiates QQuickItemDelegate
\inqmlmodule QtQuick.Controls
\since 5.7
+ \ingroup qtquickcontrols2-delegates
\brief Basic item delegate that can be used in various views and controls.
\image qtquickcontrols2-itemdelegate.gif