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, 7 insertions(+), 1 deletions(-) diff --git a/src/widgets/widgetwindowagent_p.h b/src/widgets/widgetwindowagent_p.h index d433064..36bb202 100644 --- a/src/widgets/widgetwindowagent_p.h +++ b/src/widgets/widgetwindowagent_p.h @@ -16,8 +16,14 @@ // Host QWidget *hostWidget{}; + +#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