From 739eb21594747842f15f098f2382e7554c5bc844 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Thu, 13 Aug 2020 21:18:36 +0200 Subject: 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 Change-Id: I4dee919b7008b5d3b2f492ed894891ac164a1217 Reviewed-by: Mitch Curtis (cherry picked from commit 06b3d7ceb732588633e51e6580675b2a2595fe8d) Reviewed-by: Qt Cherry-pick Bot --- src/qmlmodels/qqmldelegatemodel.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/qmlmodels/qqmldelegatemodel.cpp') diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp index 6e73894d41..1c2762acb4 100644 --- a/src/qmlmodels/qqmldelegatemodel.cpp +++ b/src/qmlmodels/qqmldelegatemodel.cpp @@ -2588,9 +2588,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. @@ -2606,9 +2607,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 -- cgit v1.2.3