From a15fef35ff9f78a2c16c31cc106175453d5ecfe0 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 29 Aug 2023 19:31:56 -0700 Subject: [PATCH] QList/Doc: document the resize() overload taking a parameter_type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added by commit b42a2b3c3338a320a438bc081cb885fd4547f01f for 6.0, but we forgot to document it. Pick-to: 6.5 6.6 Change-Id: I2b24e1d3cad44897906efffd1780086b51c0e3fa Reviewed-by: Topi Reiniƶ Reviewed-by: Lars Knoll --- src/corelib/tools/qlist.qdoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index 554d07ec1b..f0e24df26f 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -426,12 +426,13 @@ */ /*! \fn template void QList::resize(qsizetype size) + \fn template void QList::resize(qsizetype size, parameter_type c) \since 6.0 Sets the size of the list to \a size. If \a size is greater than the current size, elements are added to the end; the new elements are - initialized with a \l{default-constructed value}. If \a size is less - than the current size, elements are removed from the end. + initialized with either a \l{default-constructed value} or \a c. If \a size + is less than the current size, elements are removed from the end. If this list is not shared, the capacity() is preserved. Use squeeze() to shed excess capacity.