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>
bb10
Marc Mutz 2015-06-01 15:57:22 +02:00
parent 2fa7b3b317
commit f0a4d6463e
1 changed files with 3 additions and 1 deletions

View File

@ -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;