From eb266da10552eeefcb0f7dfe514d4385aec563f8 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周日, 03 12月 2023 05:05:23 +0800
Subject: [PATCH] Add windows context implementation

---
 src/core/windowitemdelegate.h |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/core/windowitemdelegate.h b/src/core/windowitemdelegate.h
index 9886fa5..fe9a252 100644
--- a/src/core/windowitemdelegate.h
+++ b/src/core/windowitemdelegate.h
@@ -9,8 +9,6 @@
 namespace QWK {
 
     class WindowItemDelegate {
-        Q_DISABLE_COPY(WindowItemDelegate)
-
     public:
         WindowItemDelegate() = default;
         virtual ~WindowItemDelegate() = default;
@@ -20,9 +18,10 @@
 
         virtual bool isEnabled(QObject *obj) const = 0;
         virtual bool isVisible(QObject *obj) const = 0;
-    };
 
-    using WindowItemDelegatePtr = std::shared_ptr<WindowItemDelegate>;
+    private:
+        Q_DISABLE_COPY_MOVE(WindowItemDelegate)
+    };
 
 }
 

--
Gitblit v1.9.1