From c236dd456e72335ad76f18679ec684e329a76c02 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/ Change-Id: I396297e0e4674e0a1f889f4138ab52ff224c0ee2 Reviewed-by: Leena Miettinen Reviewed-by: Samuel Gaist Reviewed-by: Paul Wicking (cherry picked from commit 05146a77fce7f080eefad3f82a14e60c8e3ec464) Reviewed-by: Qt Cherry-pick Bot --- 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 ace09e73918..b8134b3efa0 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 487480a9278..bf5e94e6033 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: