From 5e8e9fded6682623e4f66159e040f462c847d341 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 16 Apr 2021 14:29:08 +0200 Subject: QMultiHash: Fix doc In Qt 6, QMultiHash does not iherit QHash Change-Id: Iaad8768d681a9aad2bb1f80fd87904f0dd9683d4 Reviewed-by: Paul Wicking (cherry picked from commit e27390f8e1fb961e783ce1004b3a8caf5eeaeca6) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/tools/qhash.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/corelib') diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index c2fd9db879..580b94561c 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -2407,11 +2407,10 @@ size_t qHash(long double key, size_t seed) noexcept hashes. A multi-valued hash is a hash that allows multiple values with the same key. - Because QMultiHash inherits QHash, all of QHash's functionality also - applies to QMultiHash. For example, you can use isEmpty() to test + QMultiHash mostly mirrors QHash's API. For example, you can use isEmpty() to test whether the hash is empty, and you can traverse a QMultiHash using QHash's iterator classes (for example, QHashIterator). But opposed to - QHash, it provides an insert() function will allow the insertion of + QHash, it provides an insert() function that allows the insertion of multiple items with the same key. The replace() function corresponds to QHash::insert(). It also provides convenient operator+() and operator+=(). -- cgit v1.2.3