From abdad66bae077da6c3480db457beb47df5eda813 Mon Sep 17 00:00:00 2001 From: SineStriker <trueful@163.com> Date: 周六, 16 12月 2023 19:27:16 +0800 Subject: [PATCH] Fix mac window mistakes --- 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