From 05146a77fce7f080eefad3f82a14e60c8e3ec464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 18 Dec 2020 14:44:01 +0100 Subject: [PATCH] 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 Reviewed-by: Samuel Gaist Reviewed-by: Paul Wicking --- src/corelib/tools/qmap.qdoc | 3 +-- src/corelib/tools/qmultimap.qdoc | 3 +-- 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\ 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\ 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: