From c8a5a82994e513acb00ba0e1f0b882ccbb18a6db Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 26 12月 2023 05:15:47 +0800
Subject: [PATCH] clean code

---
 src/quick/quickwindowagent_p.h |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/quick/quickwindowagent_p.h b/src/quick/quickwindowagent_p.h
index 9043c5c..8919bdb 100644
--- a/src/quick/quickwindowagent_p.h
+++ b/src/quick/quickwindowagent_p.h
@@ -1,12 +1,22 @@
 #ifndef QUICKWINDOWAGENTPRIVATE_H
 #define QUICKWINDOWAGENTPRIVATE_H
 
-#include <QWKCore/private/corewindowagent_p.h>
+//
+//  W A R N I N G !!!
+//  -----------------
+//
+// This file is not part of the QWindowKit API. It is used purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or may even be removed.
+//
+
+#include <QWKCore/qwkconfig.h>
+#include <QWKCore/private/windowagentbase_p.h>
 #include <QWKQuick/quickwindowagent.h>
 
 namespace QWK {
 
-    class QuickWindowAgentPrivate : public CoreWindowAgentPrivate {
+    class QuickWindowAgentPrivate : public WindowAgentBasePrivate {
         Q_DECLARE_PUBLIC(QuickWindowAgent)
     public:
         QuickWindowAgentPrivate();
@@ -16,6 +26,10 @@
 
         // Host
         QQuickWindow *hostWindow{};
+
+#if defined(Q_OS_WINDOWS) && QWINDOWKIT_CONFIG(ENABLE_WINDOWS_SYSTEM_BORDER)
+        void setupWindows10BorderWorkaround();
+#endif
     };
 
 }

--
Gitblit v1.9.1