2020-08-11 18:11:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
|
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
|
2021-08-15 09:41:48 +00:00
|
|
|
#define TR_DISABLE_MOVE(Class) Q_DISABLE_MOVE(Class)
|
|
|
|
#define TR_DISABLE_COPY_MOVE(Class) Q_DISABLE_COPY_MOVE(Class)
|
2020-08-11 18:11:55 +00:00
|
|
|
#else
|
2021-08-15 09:41:48 +00:00
|
|
|
#define TR_DISABLE_MOVE(Class) \
|
|
|
|
Class(Class&&) = delete; \
|
|
|
|
Class& operator=(Class&&) = delete;
|
|
|
|
#define TR_DISABLE_COPY_MOVE(Class) \
|
2020-08-11 18:11:55 +00:00
|
|
|
Q_DISABLE_COPY(Class) \
|
|
|
|
TR_DISABLE_MOVE(Class)
|
|
|
|
#endif
|