QList/Doc: document the resize() overload taking a parameter_type

Added by commit b42a2b3c33 for 6.0, but we
forgot to document it.

Pick-to: 6.5 6.6
Change-Id: I2b24e1d3cad44897906efffd1780086b51c0e3fa
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
This commit is contained in:
Thiago Macieira 2023-08-29 19:31:56 -07:00
parent 5b9e2f31bd
commit a15fef35ff

View File

@ -426,12 +426,13 @@
*/ */
/*! \fn template <typename T> void QList<T>::resize(qsizetype size) /*! \fn template <typename T> void QList<T>::resize(qsizetype size)
\fn template <typename T> void QList<T>::resize(qsizetype size, parameter_type c)
\since 6.0 \since 6.0
Sets the size of the list to \a size. If \a size is greater than the 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 current size, elements are added to the end; the new elements are
initialized with a \l{default-constructed value}. If \a size is less initialized with either a \l{default-constructed value} or \a c. If \a size
than the current size, elements are removed from the end. is less than the current size, elements are removed from the end.
If this list is not shared, the capacity() is preserved. Use squeeze() If this list is not shared, the capacity() is preserved. Use squeeze()
to shed excess capacity. to shed excess capacity.