summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2020-12-18 14:44:01 +0100
committerKai Köhne <kai.koehne@qt.io>2021-01-06 17:00:42 +0100
commit05146a77fce7f080eefad3f82a14e60c8e3ec464 (patch)
treed3a417727b10810d854901a1585bafa01c1acbd5 /src
parent3ce5128d8062b7eca4925454610bd1df9db9d77a (diff)
Doc: Improve QMap, QMultiMap description
Make it clear that the fast lookup is by key, not by value. See also discussion in https://forum.qt.io/topic/121907/misleading-documentation-of-qhash-qmap/ Pick-to: 5.15 6.0 Change-Id: I396297e0e4674e0a1f889f4138ab52ff224c0ee2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch> Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qmap.qdoc3
-rw-r--r--src/corelib/tools/qmultimap.qdoc3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/corelib/tools/qmap.qdoc b/src/corelib/tools/qmap.qdoc
index 3fec85e5b2..593c4ba544 100644
--- a/src/corelib/tools/qmap.qdoc
+++ b/src/corelib/tools/qmap.qdoc
@@ -49,8 +49,7 @@
\reentrant
QMap\<Key, T\> is one of Qt's generic \l{container classes}. It
- stores (key, value) pairs and provides fast lookup of the
- value associated with a key.
+ stores (key, value) pairs and provides fast lookup by key.
QMap and QHash provide very similar functionality. The
differences are:
diff --git a/src/corelib/tools/qmultimap.qdoc b/src/corelib/tools/qmultimap.qdoc
index 3cfc6ea727..d3af4e7973 100644
--- a/src/corelib/tools/qmultimap.qdoc
+++ b/src/corelib/tools/qmultimap.qdoc
@@ -49,8 +49,7 @@
\reentrant
QMultiMap\<Key, T\> is one of Qt's generic \l{container classes}. It
- stores (key, value) pairs and provides fast lookup of the
- value associated with a key.
+ stores (key, value) pairs and provides fast lookup by key.
QMultiMap and QMultiHash provide very similar functionality. The
differences are: