From e4f2f0e125d20f3134fc28af42034ff1806d8141 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 25 May 2022 18:57:35 +0200 Subject: 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 --- src/corelib/tools/qmap.qdoc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 QList QMap::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 -- cgit v1.2.3