diff options
author | Paul Wicking <paul.wicking@qt.io> | 2020-08-13 21:18:36 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-08-15 18:47:17 +0000 |
commit | 739eb21594747842f15f098f2382e7554c5bc844 (patch) | |
tree | 094c79d5f8d3a290d9f437f5a05d72b150c9f889 | |
parent | 23f1c1713ac161d62e330f98b03472be59def5b2 (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
Change-Id: I4dee919b7008b5d3b2f492ed894891ac164a1217
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 06b3d7ceb732588633e51e6580675b2a2595fe8d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/qmlmodels/qqmldelegatemodel.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
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 |