From c2e349f1c38b55fd12f8ae537e754fa6658ab631 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 01 1月 2024 20:21:34 +0800 Subject: [PATCH] Tested 5.12.8 --- src/core/contexts/abstractwindowcontext.cpp | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/contexts/abstractwindowcontext.cpp b/src/core/contexts/abstractwindowcontext.cpp index 2fdada5..d0ca27c 100644 --- a/src/core/contexts/abstractwindowcontext.cpp +++ b/src/core/contexts/abstractwindowcontext.cpp @@ -1,3 +1,6 @@ +// Copyright (C) 2023-2024 Stdware Collections +// SPDX-License-Identifier: Apache-2.0 + #include "abstractwindowcontext_p.h" #include <QtGui/QPen> @@ -120,8 +123,9 @@ } #ifdef Q_OS_MAC - void AbstractWindowContext::setSystemButtonArea(const QRect &rect) { - m_systemButtonArea = rect; + void + AbstractWindowContext::setSystemButtonAreaCallback(const ScreenRectCallback &callback) { + m_systemButtonAreaCallback = callback; virtual_hook(SystemButtonAreaChangedHook, nullptr); } #endif -- Gitblit v1.9.1