From 09287f3d9e9e88271de2bfd5388dae5a53e8c6f5 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 07 12æ 2023 15:03:24 +0800 Subject: [PATCH] Add host event filter --- src/core/contexts/qtwindowcontext_p.h | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/core/contexts/qtwindowcontext_p.h b/src/core/contexts/qtwindowcontext_p.h index 9a78813..6046633 100644 --- a/src/core/contexts/qtwindowcontext_p.h +++ b/src/core/contexts/qtwindowcontext_p.h @@ -8,14 +8,12 @@ class QWK_CORE_EXPORT QtWindowContext : public AbstractWindowContext { Q_OBJECT public: - QtWindowContext(QObject *host, WindowItemDelegate *delegate); + QtWindowContext(); ~QtWindowContext(); - public: - bool setup() override; - protected: - bool eventFilter(QObject *obj, QEvent *event) override; + bool setupHost() override; + bool hostEventFilter(QEvent *event) override; }; } -- Gitblit v1.9.1