aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/labsmodels
diff options
context:
space:
mode:
authorJerome Pasion <jerome.pasion@qt.io>2020-11-25 14:13:16 +0100
committerJerome Pasion <jerome.pasion@qt.io>2020-11-26 17:53:19 +0100
commit5452f2e291d5eb23e67f0637ca81ed2777d8c664 (patch)
treee086b6022ab5b578e6bb5b029b7f611051ded684 /src/imports/labsmodels
parent72746ef0ad69d589de91f43aa2043d6e47745d68 (diff)
Doc: Fix language according to clang-format
-clang-format complains after commits and this is the fixed version Task-number: QTBUG-88010 Change-Id: I6a1f0f79b528fd7acc2a52d928f4648867b422b9 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/imports/labsmodels')
-rw-r--r--src/imports/labsmodels/qqmldelegatecomponent.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/imports/labsmodels/qqmldelegatecomponent.cpp b/src/imports/labsmodels/qqmldelegatecomponent.cpp
index dc644d3095..c920d7c294 100644
--- a/src/imports/labsmodels/qqmldelegatecomponent.cpp
+++ b/src/imports/labsmodels/qqmldelegatecomponent.cpp
@@ -167,18 +167,17 @@ bool QQmlDelegateChoice::match(int row, int column, const QVariant &value) const
\inqmlmodule Qt.labs.qmlmodels
\brief Allows a view to use different delegates for different types of items in the model.
- The DelegateChooser is a special \l Component type intended for those scenarios where a Component is required
- by a view and used as a delegate.
- DelegateChooser encapsulates a set of \l {DelegateChoice}s.
- These choices are used to determine the delegate that will be instantiated for each
- item in the model.
- The selection of the choice is performed based on the value that a model item has for \l role,
- and also based on index.
-
- DelegateChooser is commonly used when a view needs to display a set of delegates that are significantly
- different from each other. For example, a typical phone settings view might include toggle switches,
- sliders, radio buttons, and other visualizations based on the type of each setting. In this case, DelegateChooser
- could provide an easy way to associate a different type of delegate with each setting:
+ The DelegateChooser is a special \l Component type intended for those scenarios where a
+ Component is required by a view and used as a delegate. DelegateChooser encapsulates a set of \l
+ {DelegateChoice}s. These choices are used to determine the delegate that will be instantiated for
+ each item in the model. The selection of the choice is performed based on the value that a model
+ item has for \l role, and also based on index.
+
+ DelegateChooser is commonly used when a view needs to display a set of delegates that are
+ significantly different from each other. For example, a typical phone settings view might include
+ toggle switches, sliders, radio buttons, and other visualizations based on the type of each
+ setting. In this case, DelegateChooser could provide an easy way to associate a different type of
+ delegate with each setting:
\qml
import QtQuick
@@ -209,9 +208,9 @@ bool QQmlDelegateChoice::match(int row, int column, const QVariant &value) const
}
\endqml
- \note This type is intended to transparently work only with TableView and any DelegateModel-based view.
- Views (including user-defined views) that aren't internally based on a DelegateModel need to explicitly support
- this type of component to make it function as described.
+ \note This type is intended to transparently work only with TableView and any
+ DelegateModel-based view. Views (including user-defined views) that aren't internally based on a
+ DelegateModel need to explicitly support this type of component to make it function as described.
\sa DelegateChoice
*/