From 59207cbc449e2e69e6b794115f8aeae168dba405 Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周三, 13 12月 2023 20:08:19 +0800
Subject: [PATCH] minor tweaks

---
 src/widgets/widgetwindowagent_p.h |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/widgets/widgetwindowagent_p.h b/src/widgets/widgetwindowagent_p.h
index eb1d96d..5b60770 100644
--- a/src/widgets/widgetwindowagent_p.h
+++ b/src/widgets/widgetwindowagent_p.h
@@ -1,15 +1,13 @@
 #ifndef WIDGETWINDOWAGENTPRIVATE_H
 #define WIDGETWINDOWAGENTPRIVATE_H
 
-#include <QWKCore/private/corewindowagent_p.h>
+#include <QWKCore/private/windowagentbase_p.h>
 #include <QWKWidgets/widgetwindowagent.h>
 
 namespace QWK {
 
-    class WidgetWindowAgentPrivate : public CoreWindowAgentPrivate {
-        Q_DISABLE_COPY(WidgetWindowAgentPrivate)
+    class WidgetWindowAgentPrivate : public WindowAgentBasePrivate {
         Q_DECLARE_PUBLIC(WidgetWindowAgent)
-
     public:
         WidgetWindowAgentPrivate();
         ~WidgetWindowAgentPrivate();
@@ -17,7 +15,11 @@
         void init();
 
         // Host
-        QWidget *host{};
+        QWidget *hostWidget{};
+
+#ifdef Q_OS_WINDOWS
+        void setupWindows10BorderWorkaround();
+#endif
     };
 
 }

--
Gitblit v1.9.1