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:
parent
5b9e2f31bd
commit
a15fef35ff
@ -426,12 +426,13 @@
|
||||
*/
|
||||
|
||||
/*! \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
|
||||
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user