diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-10-09 12:43:20 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-11-27 12:39:55 +0100 |
| commit | 906aa1533f2267b091615d21c2d31e1742f0a520 (patch) | |
| tree | d1591a253674fd2bd4cfca5006ac6b68371ae482 /src/corelib/plugin/quuid.cpp | |
| parent | 4502025dcdd09c7821b793739fafb1565ddf5b52 (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 <ivan.solovev@qt.io>
Reviewed-by: Jaishree Vyas <jaishree.vyas@qt.io>
Diffstat (limited to 'src/corelib/plugin/quuid.cpp')
| -rw-r--r-- | src/corelib/plugin/quuid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/quuid.cpp b/src/corelib/plugin/quuid.cpp index 0b7349372a5..0b1615c6499 100644 --- a/src/corelib/plugin/quuid.cpp +++ b/src/corelib/plugin/quuid.cpp @@ -970,9 +970,9 @@ QDebug operator<<(QDebug dbg, const QUuid &id) #endif /*! + \fn size_t qHash(const QUuid &key, size_t seed) \since 5.0 - \relates QUuid - Returns a hash of the UUID \a uuid, using \a seed to seed the calculation. + \qhashold{QUuid} */ size_t qHash(const QUuid &uuid, size_t seed) noexcept { |
