From e42e7b39603296afb711b81b8214c0576617684b Mon Sep 17 00:00:00 2001 From: Sze Howe Koh Date: Sat, 29 Aug 2020 18:57:46 +0800 Subject: Doc: Clarify DelegateModelGroup::setGroups() description The previous description had an awkward structure and was duplicated. Change-Id: I46dbc804e1c907198364f441fd46eb853db97e6a Reviewed-by: Samuel Gaist (cherry picked from commit 3cf3434c1a898c834b2f0f6182068bbf8a95b9bc) Reviewed-by: Qt Cherry-pick Bot --- src/qmlmodels/qqmldelegatemodel.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/qmlmodels/qqmldelegatemodel.cpp b/src/qmlmodels/qqmldelegatemodel.cpp index 1c2762acb4..725b9e8bc3 100644 --- a/src/qmlmodels/qqmldelegatemodel.cpp +++ b/src/qmlmodels/qqmldelegatemodel.cpp @@ -3305,7 +3305,8 @@ void QQmlDelegateModelGroup::removeGroups(QQmlV4Function *args) /*! \qmlmethod QtQml.Models::DelegateModelGroup::setGroups(int index, int count, stringlist groups) - Sets the \a groups \a count items starting at \a index belong to. + Changes the group membership of \a count items starting at \a index. The items are removed from + their existing groups and added to \a groups. */ void QQmlDelegateModelGroup::setGroups(QQmlV4Function *args) @@ -3332,12 +3333,6 @@ void QQmlDelegateModelGroup::setGroups(QQmlV4Function *args) } } -/*! - \qmlmethod QtQml.Models::DelegateModelGroup::setGroups(int index, int count, stringlist groups) - - Sets the \a groups \a count items starting at \a index belong to. -*/ - /*! \qmlmethod QtQml.Models::DelegateModelGroup::move(var from, var to, int count) -- cgit v1.2.3