diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-29 19:31:56 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-09-01 13:05:37 -0700 |
commit | a15fef35ff9f78a2c16c31cc106175453d5ecfe0 (patch) | |
tree | 331fdf3de4a1bdd36126ed975c880c0a7170e12c /src/corelib/tools/qlist.qdoc | |
parent | 5b9e2f31bd4bc636cf596ef3375317f33041cad5 (diff) |
QList/Doc: document the resize() overload taking a parameter_type
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ƶ <topi.reinio@qt.io>
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src/corelib/tools/qlist.qdoc')
-rw-r--r-- | src/corelib/tools/qlist.qdoc | 5 |
1 files 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 <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. |