diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2022-05-25 18:57:35 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2022-05-25 22:23:39 +0200 |
commit | e4f2f0e125d20f3134fc28af42034ff1806d8141 (patch) | |
tree | 323ea1a4d9313c4c55db7ffb691d6fb84a08dbfb | |
parent | f53e4b586012abbc7b3f9b71e7f891c52c347a23 (diff) |
QMap: fix values() documentation
The body was still referring to the Qt 5 QMap where the same key could
be mapping to multiple values. That's no longer the case in Qt 6.
Change-Id: Idb1786ac45f328c318878fa52bf5d43d79c0178a
Pick-to: 6.2 6.3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | src/corelib/tools/qmap.qdoc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/tools/qmap.qdoc b/src/corelib/tools/qmap.qdoc index 5d0825708b..6c7d7bcbc4 100644 --- a/src/corelib/tools/qmap.qdoc +++ b/src/corelib/tools/qmap.qdoc @@ -413,9 +413,7 @@ /*! \fn template <class Key, class T> QList<T> QMap<Key, T>::values() const Returns a list containing all the values in the map, in ascending - order of their keys. If a key is associated with multiple values, - all of its values will be in the list, and not just the most - recently inserted one. + order of their keys. This function creates a new list, in \l {linear time}. The time and memory use that entails can be avoided by iterating from \l keyValueBegin() to |