From 9619357769518e277237812e82d7c32d38cb20e6 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周日, 17 12月 2023 00:23:05 +0800 Subject: [PATCH] Optimize Qt and Cocoa context --- 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