1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-19 05:19:54 +00:00
transmission/qt/Macros.h
Charles Kerr 677dc73eac
refactor: use GTest for running tests (#1383)
* refactor: use google-test on libtransmission tests
2020-08-11 13:11:55 -05:00

17 lines
427 B
C

#pragma once
#include <QtGlobal>
#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
# define TR_DISABLE_MOVE(Class) \
Q_DISABLE_MOVE(Class)
# define TR_DISABLE_COPY_MOVE(Class) \
Q_DISABLE_COPY_MOVE(Class)
#else
# define TR_DISABLE_MOVE(Class) \
Class(Class &&) = delete; \
Class& operator =(Class &&) = delete;
# define TR_DISABLE_COPY_MOVE(Class) \
Q_DISABLE_COPY(Class) \
TR_DISABLE_MOVE(Class)
#endif