From 88b91b1fec752538beebca2fd92e62c8e03f32d4 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周二, 19 12月 2023 16:55:39 +0800 Subject: [PATCH] update win11 picture --- src/core/contexts/qtwindowcontext_p.h | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/core/contexts/qtwindowcontext_p.h b/src/core/contexts/qtwindowcontext_p.h index 7a31987..dc19f0a 100644 --- a/src/core/contexts/qtwindowcontext_p.h +++ b/src/core/contexts/qtwindowcontext_p.h @@ -5,14 +5,20 @@ namespace QWK { - class QWK_CORE_EXPORT QtWindowContext : public AbstractWindowContext { + class QtWindowContext : public AbstractWindowContext { Q_OBJECT public: QtWindowContext(); - ~QtWindowContext(); + ~QtWindowContext() override; + + QString key() const override; + void virtual_hook(int id, void *data) override; protected: - bool setupHost() override; + void winIdChanged(QWindow *oldWindow) override; + + protected: + std::unique_ptr<QObject> qtWindowEventFilter; }; } -- Gitblit v1.9.1