summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorAndrei Golubev <andrei.golubev@qt.io>2020-10-21 12:24:59 +0200
committerAndrei Golubev <andrei.golubev@qt.io>2020-10-22 13:54:46 +0200
commite7d1a5ace517b4d691019723a91e97e4b998ff84 (patch)
treefc4d894d9d78e93cbb53734281f3fb13b32ef663 /src/corelib
parentb38d5fd8e4fa1db8f9614207d5d4eb7484a6c601 (diff)
Use American "canceled" in QPromise docs
Change-Id: I4c416f52c7102750a77c3f91274dd0a235569d6e Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/thread/qpromise.qdoc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/thread/qpromise.qdoc b/src/corelib/thread/qpromise.qdoc
index d5537efb4d..ae0d924668 100644
--- a/src/corelib/thread/qpromise.qdoc
+++ b/src/corelib/thread/qpromise.qdoc
@@ -98,7 +98,7 @@
Destroys the promise.
- \note The promise implicitly transitions to a cancelled state on destruction
+ \note The promise implicitly transitions to a canceled state on destruction
unless finish() is called beforehand by the user.
*/
@@ -115,7 +115,7 @@
Returns \c true when \a result is added to the collection.
- Returns \c false when this promise is in cancelled or finished state or when
+ Returns \c false when this promise is in canceled or finished state or when
\a result is rejected. addResult() rejects \a result if there's already
another result in the collection stored at the same index.
@@ -170,7 +170,7 @@
/*! \fn template<typename T> void QPromise<T>::suspendIfRequested()
Conditionally suspends current thread of execution and waits until resumed
- or cancelled by the corresponding methods of QFuture. This method does not
+ or canceled by the corresponding methods of QFuture. This method does not
block unless the computation is requested to be suspended by
QFuture::suspend() or another related method. If you want to check that the
execution has been suspended, use QFuture::isSuspended().
@@ -204,7 +204,7 @@
/*! \fn template<typename T> bool QPromise<T>::isCanceled() const
- Returns whether the computation has been cancelled with the
+ Returns whether the computation has been canceled with the
QFuture::cancel() function. The returned value \c true indicates that the
computation should be finished and finish() called.
@@ -235,7 +235,7 @@
progressValue and \a progressText respectively. It is possible to only
increment the progress value.
- \note This function has no effect if the promise is in cancelled or finished
+ \note This function has no effect if the promise is in canceled or finished
state.
\sa QFuture::progressValue(), QFuture::progressText(), QFuture::cancel(),