From f041cd599f2ba58906958f6886b9cd25e180d0af Mon Sep 17 00:00:00 2001
From: Yuhang Zhao <zhaoyuhang@rankyee.com>
Date: 周三, 06 12月 2023 10:28:34 +0800
Subject: [PATCH] add more const

---
 src/core/corewindowagent_p.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/core/corewindowagent_p.h b/src/core/corewindowagent_p.h
index 5276145..faa61f8 100644
--- a/src/core/corewindowagent_p.h
+++ b/src/core/corewindowagent_p.h
@@ -16,9 +16,11 @@
 
         CoreWindowAgent *q_ptr; // no need to initialize
 
-        bool setup(QWindow *window, WindowItemDelegate *delegate);
+        bool setup(QObject *host, WindowItemDelegate *delegate);
 
-        AbstractWindowContext *m_eventHandler;
+        std::unique_ptr<AbstractWindowContext> context;
+
+        Q_DISABLE_COPY_MOVE(CoreWindowAgentPrivate)
     };
 
 }

--
Gitblit v1.9.1