diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-12-01 09:55:54 +0000 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2023-12-01 13:21:51 +0000 |
commit | a57faeb035898301e361fa4825a545fea42f9374 (patch) | |
tree | 761c4850dacb40cf254532bfc197af222a5dc3d4 | |
parent | cbbab1a9ae45cafacf9436948101cf6024033a91 (diff) |
Doc: Provide missing return values in QIfPendingReply \fn documentation
QDoc in Qt 6.7 will require complete function signatures in \fn commands,
including return values.
Pick-to: 6.6 6.5
Change-Id: Ib96908eff9e5c317fcb2bfe72f138a93fe71af14
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
-rw-r--r-- | src/interfaceframework/qifpendingreply.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaceframework/qifpendingreply.cpp b/src/interfaceframework/qifpendingreply.cpp index f101ab75..e68649ec 100644 --- a/src/interfaceframework/qifpendingreply.cpp +++ b/src/interfaceframework/qifpendingreply.cpp @@ -776,7 +776,7 @@ void QIfPendingReplyBase::setSuccessNoCheck(const QVariant &value) */ /*! - \fn template <class T> QIfPendingReply<T>::createFailedReply() + \fn template <class T> QIfPendingReply<T> QIfPendingReply<T>::createFailedReply() Creates a reply object which is marked as failed. This is convenient in error cases inside functions returning a reply e.g. @@ -810,7 +810,7 @@ void QIfPendingReplyBase::setSuccessNoCheck(const QVariant &value) */ /*! - \fn template <class T> QIfPendingReply<T>::reply() const + \fn template <class T> T QIfPendingReply<T>::reply() const Returns the result of the reply. If no result has been set yet or when the reply is marked as failed, a default constructed value is returned. @@ -819,7 +819,7 @@ void QIfPendingReplyBase::setSuccessNoCheck(const QVariant &value) */ /*! - \fn template <class T> QIfPendingReply<T>::setSuccess(const T &val) + \fn template <class T> void QIfPendingReply<T>::setSuccess(const T &val) Sets the result of the reply to \a val and marks the reply as succeeded. @@ -829,7 +829,7 @@ void QIfPendingReplyBase::setSuccessNoCheck(const QVariant &value) */ /*! - \fn template <class T> QIfPendingReply<T>::then(const std::function<void (const T &)> &success, const std::function<void ()> &failed) + \fn template <class T> void QIfPendingReply<T>::then(const std::function<void (const T &)> &success, const std::function<void ()> &failed) Sets the C++ callbacks to be called once a result is delivered. If the reply succeeds \a success is called; otherwise \a failed is called. |