QList/Doc: document the resize() overload taking a parameter_type
Added by commit b42a2b3c3338a320a438bc081cb885fd4547f01f for 6.0, but we forgot to document it. Change-Id: I2b24e1d3cad44897906efffd1780086b51c0e3fa Reviewed-by: Topi Reiniö <topi.reinio@qt.io> Reviewed-by: Lars Knoll <lars@knoll.priv.no> (cherry picked from commit a15fef35ff9f78a2c16c31cc106175453d5ecfe0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
66dfbea290
commit
7bee8bd163
@ -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…
x
Reference in New Issue
Block a user