From b54e368f16e8bd977fe57fcc738fc6804af076e4 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周一, 01 1月 2024 22:20:17 +0800 Subject: [PATCH] Update README --- src/core/contexts/cocoawindowcontext_p.h | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/core/contexts/cocoawindowcontext_p.h b/src/core/contexts/cocoawindowcontext_p.h index e9d09d7..512fb20 100644 --- a/src/core/contexts/cocoawindowcontext_p.h +++ b/src/core/contexts/cocoawindowcontext_p.h @@ -1,3 +1,6 @@ +// Copyright (C) 2023-2024 Stdware Collections +// SPDX-License-Identifier: Apache-2.0 + #ifndef COCOAWINDOWCONTEXT_P_H #define COCOAWINDOWCONTEXT_P_H @@ -23,13 +26,17 @@ QString key() const override; void virtual_hook(int id, void *data) override; + QVariant windowAttribute(const QString &key) const override; + protected: void winIdChanged() override; + bool windowAttributeChanged(const QString &key, const QVariant &attribute, + const QVariant &oldAttribute) override; protected: WId windowId = 0; - std::unique_ptr<QObject> cocoaWindowEventFilter; + std::unique_ptr<SharedEventFilter> cocoaWindowEventFilter; }; } -- Gitblit v1.9.1