From 499afac952920595e6c3d4f94806427f894c7674 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周六, 02 12月 2023 19:05:24 +0800 Subject: [PATCH] optimize code --- src/core/windowitemdelegate.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/core/windowitemdelegate.h b/src/core/windowitemdelegate.h index b24070b..985dedc 100644 --- a/src/core/windowitemdelegate.h +++ b/src/core/windowitemdelegate.h @@ -1,6 +1,8 @@ #ifndef WINDOWITEMDELEGATE_H #define WINDOWITEMDELEGATE_H +#include <memory> + #include <QtCore/QObject> #include <QtGui/QWindow> @@ -10,6 +12,7 @@ class WindowItemDelegate { public: + WindowItemDelegate() = default; virtual ~WindowItemDelegate() = default; public: @@ -17,6 +20,9 @@ virtual bool isEnabled(QObject *obj) const = 0; virtual bool isVisible(QObject *obj) const = 0; + + private: + Q_DISABLE_COPY_MOVE(WindowItemDelegate) }; } -- Gitblit v1.9.1