From 51039917996909284fbc2d776a9b8f71fe5e6f9a Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周六, 02 12月 2023 17:43:17 +0800
Subject: [PATCH] wip

---
 src/widgets/widgetwindowagent.h |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/widgets/widgetwindowagent.h b/src/widgets/widgetwindowagent.h
index 32df976..7c627c2 100644
--- a/src/widgets/widgetwindowagent.h
+++ b/src/widgets/widgetwindowagent.h
@@ -12,13 +12,15 @@
 
     class QWK_WIDGETS_EXPORT WidgetWindowAgent : public CoreWindowAgent {
         Q_OBJECT
+        Q_DISABLE_COPY(WidgetWindowAgent)
         Q_DECLARE_PRIVATE(WidgetWindowAgent)
-    public:
-        explicit WidgetWindowAgent(QObject *parent = nullptr);
-        ~WidgetWindowAgent();
 
     public:
-        void setup(QWidget *w);
+        explicit WidgetWindowAgent(QObject *parent = nullptr);
+        ~WidgetWindowAgent() override;
+
+    public:
+        bool setup(QWidget *w);
 
         bool isHitTestVisible(QWidget *w) const;
         void setHitTestVisible(QWidget *w, bool visible);

--
Gitblit v1.9.1