From f22ae9c0d059372d51990ec6fad04d7d829c990b Mon Sep 17 00:00:00 2001 From: Kari Oikarinen Date: Tue, 27 Mar 2018 09:35:43 +0300 Subject: QFutureWatcher: Refer to convenience method resultAt in documentation The future does not actually have a result() member function that takes an int. The correct function is resultAt(). But that is also available directly in the QFutureWatcher, so refer to that instead of advising to get to the future. Change-Id: I53d267b4b48b1171bf611e11130b9dacabc059a4 Reviewed-by: Martin Smith --- src/corelib/thread/qfuturewatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/thread/qfuturewatcher.cpp') diff --git a/src/corelib/thread/qfuturewatcher.cpp b/src/corelib/thread/qfuturewatcher.cpp index 8c4cb9a5a2..5b68af1fbc 100644 --- a/src/corelib/thread/qfuturewatcher.cpp +++ b/src/corelib/thread/qfuturewatcher.cpp @@ -576,7 +576,7 @@ void QFutureWatcherBasePrivate::sendCallOutEvent(QFutureCallOutEvent *event) This signal is emitted when the watched future reports a ready result at \a index. If the future reports multiple results, the index will indicate which one it is. Results can be reported out-of-order. To get the result, - call future().result(index); + call resultAt(index); */ /*! -- cgit v1.2.3