summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qkeysequence.cpp
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2024-10-09 12:43:20 +0200
committerMarc Mutz <[email protected]>2024-11-27 12:39:55 +0100
commit906aa1533f2267b091615d21c2d31e1742f0a520 (patch)
treed1591a253674fd2bd4cfca5006ac6b68371ae482 /src/gui/kernel/qkeysequence.cpp
parent4502025dcdd09c7821b793739fafb1565ddf5b52 (diff)
Create qdoc macros for C++ class docs 2.1: qHash()
Add a family of qdoc macros to document the various qHash() overloads we have. This patch does not change the \relates of the qHash() functions, they remain as inconsistent as they have been. Created QTBUG-129815 to clean things up. Since this author expects the \relates to change in the future, there are different \qhash commands, and all except \qhashbuiltin take the class name as an argument, for use in a centrally-choreographed fix for QTBUG-129815. As drive-by's, fix: - missing documentation about Key having to support qHash() in the associative Qt containers - drop noexcept and default arguments from \fn lines that needed to have their argument names changed - move the QStringView overload from qhash.cpp to qstringview.cpp (as it \relates to the former) Fixes: QTBUG-129574 Pick-to: 6.8 6.5 Change-Id: I8e8c2edc27422cbe5823f56baf3a24d7f7050836 Reviewed-by: Ivan Solovev <[email protected]> Reviewed-by: Jaishree Vyas <[email protected]>
Diffstat (limited to 'src/gui/kernel/qkeysequence.cpp')
-rw-r--r--src/gui/kernel/qkeysequence.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/kernel/qkeysequence.cpp b/src/gui/kernel/qkeysequence.cpp
index ad9b3527f15..7e78ac5b08d 100644
--- a/src/gui/kernel/qkeysequence.cpp
+++ b/src/gui/kernel/qkeysequence.cpp
@@ -1410,10 +1410,7 @@ bool QKeySequence::operator==(const QKeySequence &other) const
/*!
\since 5.6
- \relates QKeySequence
-
- Calculates the hash value of \a key, using
- \a seed to seed the calculation.
+ \qhashold{QKeySequence}
*/
size_t qHash(const QKeySequence &key, size_t seed) noexcept
{