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.cpp |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp
index 4f4764e..5fa7787 100644
--- a/src/core/contexts/qtwindowcontext.cpp
+++ b/src/core/contexts/qtwindowcontext.cpp
@@ -46,15 +46,12 @@
     QtWindowContext::~QtWindowContext() {
     }
 
-    bool QtWindowContext::setup(QObject *host, WindowItemDelegate *delegate) {
-        if (!AbstractWindowContext::setup(host, delegate)) {
-            return false;
-        }
+    bool QtWindowContext::setupHost() {
         return false;
     }
 
-    bool QtWindowContext::eventFilter(QObject *obj, QEvent *event) {
-        return AbstractWindowContext::eventFilter(obj, event);
+    bool QtWindowContext::hostEventFilter(QEvent *event) {
+        return false;
     }
 
 }
\ No newline at end of file

--
Gitblit v1.9.1