diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-09-06 12:44:31 +0000 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2023-09-11 15:56:10 +0000 |
commit | c46551e2033061596bf3cc28a96aaf71574e1e59 (patch) | |
tree | 12ee52460843cd4b8e88769c2482dc2355a18427 /src/corelib/kernel | |
parent | c7486cd665e201dd48f49312681de4a776fbe558 (diff) |
Doc: Fix documentation issues
Fix the following QDoc warnings:
* warning: Can't link to 'QRhiWidget::sampleConut'
* warning: Can't link to '`Q_NODISCARD_CTOR'
* warning: Invalid '\relates' (already a member of 'QEventLoopLocker')
* warning: Unknown command '\relatesalso'
* warning: Undocumented parameter 'separator' in QLocale::name()
* warning: clang couldn't find function when parsing \fn void QRhiWidget::framePresented()
In QAtomicPointer, work around the issue of QDoc not supporting
multiple \relates command for a single topic by adding a see-also
link to the global qYieldCpu() function.
Document the qvariant_cast() overload taking an rvalue reference.
Change-Id: I2528eee666149a97a14be059bbed537636d7aa0d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qeventloop.cpp | 1 | ||||
-rw-r--r-- | src/corelib/kernel/qvariant.cpp | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventloop.cpp b/src/corelib/kernel/qeventloop.cpp index f754a975b9..dcd5f6d5c0 100644 --- a/src/corelib/kernel/qeventloop.cpp +++ b/src/corelib/kernel/qeventloop.cpp @@ -403,7 +403,6 @@ QEventLoopLocker::QEventLoopLocker(QThread *thread) noexcept /*! \fn QEventLoopLocker::swap(QEventLoopLocker &lhs, QEventLoopLocker &rhs) - \relates QEventLoopLocker \since 6.7 Swaps the object and the state of \a lhs with \a rhs. diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index 9f948d5b1f..2c8e61fa34 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -2722,6 +2722,14 @@ QT_WARNING_POP \sa QVariant::value() */ +/*! + \fn template<typename T> T QVariant::qvariant_cast(QVariant &&value) + \overload + \since 6.7 + + Returns the given \a value converted to the template type \c{T}. +*/ + /*! \fn template<typename T> T qVariantValue(const QVariant &value) \relates QVariant \deprecated |