From bd3bb1d4d8fc9af3b9fe534d085f54d45aa50627 Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 摹曛, 14 12月 2023 21:29:34 +0800
Subject: [PATCH] fix macos bug

---
 src/widgets/widgetwindowagent_p.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/widgets/widgetwindowagent_p.h b/src/widgets/widgetwindowagent_p.h
index 758250e..36bb202 100644
--- a/src/widgets/widgetwindowagent_p.h
+++ b/src/widgets/widgetwindowagent_p.h
@@ -17,9 +17,13 @@
         // Host
         QWidget *hostWidget{};
 
-        std::unique_ptr<QObject> paintFilter;
+#ifdef Q_OS_WINDOWS
+        void setupWindows10BorderWorkaround();
+#elif defined(Q_OS_MACOS)
+        void setupMacOSTitleBar(QWidget *titleBar);
+#endif
     };
 
 }
 
-#endif // WIDGETWINDOWAGENTPRIVATE_H
\ No newline at end of file
+#endif // WIDGETWINDOWAGENTPRIVATE_H

--
Gitblit v1.9.1