diff options
Diffstat (limited to 'src/corelib/thread/qpromise.h')
-rw-r--r-- | src/corelib/thread/qpromise.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/corelib/thread/qpromise.h b/src/corelib/thread/qpromise.h index 15aea16f29..9cd9238381 100644 --- a/src/corelib/thread/qpromise.h +++ b/src/corelib/thread/qpromise.h @@ -110,6 +110,11 @@ public: d.setProgressValueAndText(progressValue, progressText); } +#if defined(Q_CLANG_QDOC) // documentation-only simplified signatures + void addResult(const T &result, int index = -1) { } + void addResult(T &&result, int index = -1) { } +#endif + private: mutable QFutureInterface<T> d = QFutureInterface<T>(); |