diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-01 15:57:22 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-06-02 21:51:05 +0000 |
commit | f0a4d6463e5260a4fa46744b8c65877c9b5fae85 (patch) | |
tree | c130e38aee7513961bc0e49ace8278cabffa6b75 /src/corelib/thread | |
parent | 2fa7b3b317fa941064ec4ba62163e3244becf55a (diff) |
QRunnable: add Q_DISABLE_COPY
...but only for Qt 6. It's a source-incompatible change,
e.g. in a user hierarchy of clone()able runnables.
Change-Id: I8610308dea46da19bda5c96985d35f31c43484be
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qrunnable.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/thread/qrunnable.h b/src/corelib/thread/qrunnable.h index 7233f33621..28d14a46c0 100644 --- a/src/corelib/thread/qrunnable.h +++ b/src/corelib/thread/qrunnable.h @@ -45,7 +45,9 @@ class Q_CORE_EXPORT QRunnable friend class QThreadPool; friend class QThreadPoolPrivate; friend class QThreadPoolThread; - +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + Q_DISABLE_COPY(QRunnable) +#endif public: virtual void run() = 0; |