Doc: Add \relates command to two global swap() functions

And fix incorrect copy-paste error in QBasicTimer's swap()
description, 'string' -> 'timer'.

Change-Id: I28f5e4d6c8e3b8698ab9b4587d503b06c5628b78
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
(cherry picked from commit 2f283489ef6a2f77c6a5ecc85a4f2c109969d393)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Topi Reinio 2023-05-23 12:45:42 +00:00 committed by Qt Cherry-pick Bot
parent abd60e9592
commit 50150e3b4e
2 changed files with 20 additions and 5 deletions

View File

@ -403,10 +403,17 @@ void QNativeIpcKey::destroy_internal() noexcept
/*!
\fn QNativeIpcKey::swap(QNativeIpcKey &other) noexcept
\fn swap(QNativeIpcKey &lhs, QNativeIpcKey &rhs) noexcept
Swaps the native IPC key and type \a other with this object, or \a lhs with
\a rhs. This operation is very fast and never fails.
Swaps the native IPC key and type \a other with this object.
This operation is very fast and never fails.
*/
/*!
\fn swap(QNativeIpcKey &value1, QNativeIpcKey &value2) noexcept
\relates QNativeIpcKey
Swaps the native IPC key and type \a value1 with \a value2.
This operation is very fast and never fails.
*/
/*!

View File

@ -86,10 +86,18 @@ QT_BEGIN_NAMESPACE
/*!
\fn QBasicTimer::swap(QBasicTimer &other)
\fn swap(QBasicTimer &lhs, QBasicTimer &rhs)
\since 5.14
Swaps string \a other with this string, or \a lhs with \a rhs.
Swaps the timer \a other with this timer.
This operation is very fast and never fails.
*/
/*!
\fn swap(QBasicTimer &lhs, QBasicTimer &rhs)
\relates QBasicTimer
\since 5.14
Swaps the timer \a lhs with \a rhs.
This operation is very fast and never fails.
*/