1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 19:42:45 +01:00

ScreenPlay Q_DISABLE_COPY_MOVE() macro fix

This commit is contained in:
JeJo 2019-05-04 22:32:13 +02:00
parent 736f2e7f7f
commit 355beb1bd5
3 changed files with 11 additions and 4 deletions

View File

@ -45,8 +45,10 @@ public:
MonitorListModel* mlm, SDKConnector* sdkc,
QObject* parent = nullptr);
// copy and move disable(for now) : remember rule of 1/3/5
Q_DISABLE_COPY_MOVE(ScreenPlay)
// copy and move disabled(for now) : remember rule of 1/3/5
Q_DISABLE_COPY(ScreenPlay)
ScreenPlay(ScreenPlay&&) = delete;
ScreenPlay& operator=(ScreenPlay&&) = delete;
// destructor
~ScreenPlay();

View File

@ -37,7 +37,9 @@ public:
const QString& type, ScreenPlay* parent = nullptr);
// copy and move disable(for now) : remember rule of 1/3/5
Q_DISABLE_COPY_MOVE(ScreenPlayWallpaper)
Q_DISABLE_COPY(ScreenPlayWallpaper)
ScreenPlayWallpaper(ScreenPlayWallpaper&& rhs);
ScreenPlayWallpaper& operator=(ScreenPlayWallpaper&& rhs);
// destructor
~ScreenPlayWallpaper();

View File

@ -32,7 +32,10 @@ public:
const QString& fullPath, ScreenPlay* parent = nullptr);
// copy and move disable(for now) : remember rule of 1/3/5
Q_DISABLE_COPY_MOVE(ScreenPlayWidget)
//Q_DISABLE_COPY_MOVE(ScreenPlayWidget)
Q_DISABLE_COPY(ScreenPlayWidget)
ScreenPlayWidget(ScreenPlayWidget&&) = delete;
ScreenPlayWidget& operator=(ScreenPlayWidget&&) = delete;
// destructor
~ScreenPlayWidget();