aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlmodels
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2020-08-13 21:18:36 +0200
committerPaul Wicking <paul.wicking@qt.io>2020-08-15 19:13:07 +0200
commit06b3d7ceb732588633e51e6580675b2a2595fe8d (patch)
treecd41d12fe0b2bdce9c3f3667c9747523138a5de3 /src/qmlmodels
parentdd922e3624878fcd83c8034b6c7a4b0fb9b51df8 (diff)
Doc: Use correct type in QML documentation
DelegateModel.inItems and DelegateModel.inPersistedItems were wrongfully documented as of type int, when they are bool. This patch corrects that. Reflow long lines as clang-format complains.. Fixes: QTBUG-86031 Pick-to: 5.15 Change-Id: I4dee919b7008b5d3b2f492ed894891ac164a1217 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qmlmodels')
-rw-r--r--src/qmlmodels/qqmldelegatemodel.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp
index ecbc1465fa..fa8fe83dc5 100644
--- a/src/qmlmodels/qqmldelegatemodel.cpp
+++ b/src/qmlmodels/qqmldelegatemodel.cpp
@@ -2586,9 +2586,10 @@ bool QQmlDelegateModelAttached::isUnresolved() const
}
/*!
- \qmlattachedproperty int QtQml.Models::DelegateModel::inItems
+ \qmlattachedproperty bool QtQml.Models::DelegateModel::inItems
- This attached property holds whether the item belongs to the default \l items DelegateModelGroup.
+ This attached property holds whether the item belongs to the default \l items
+ DelegateModelGroup.
Changing this property will add or remove the item from the items group.
@@ -2604,9 +2605,10 @@ bool QQmlDelegateModelAttached::isUnresolved() const
*/
/*!
- \qmlattachedproperty int QtQml.Models::DelegateModel::inPersistedItems
+ \qmlattachedproperty bool QtQml.Models::DelegateModel::inPersistedItems
- This attached property holds whether the item belongs to the \l persistedItems DelegateModelGroup.
+ This attached property holds whether the item belongs to the \l persistedItems
+ DelegateModelGroup.
Changing this property will add or remove the item from the items group. Change with caution
as removing an item from the persistedItems group will destroy the current instance if it is