From 59690b8ab4f3e4c2cea0467f40e858080943dd62 Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 摹曛, 14 12月 2023 20:45:33 +0800
Subject: [PATCH] tweak

---
 src/core/contexts/qtwindowcontext.cpp |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp
index 732ecf1..ee5d27d 100644
--- a/src/core/contexts/qtwindowcontext.cpp
+++ b/src/core/contexts/qtwindowcontext.cpp
@@ -40,22 +40,20 @@
 #endif
     }
 
-    QtWindowContext::QtWindowContext(QObject *host, WindowItemDelegate *delegate)
-        : AbstractWindowContext(host, delegate) {
+    QtWindowContext::QtWindowContext() : AbstractWindowContext() {
     }
 
-    QtWindowContext::~QtWindowContext() {
+    QtWindowContext::~QtWindowContext() = default;
+
+    QString QtWindowContext::key() const {
+        return QStringLiteral("qt");
     }
 
-    bool QtWindowContext::setup() {
-        if (!m_windowHandle) {
-            return false;
-        }
-        return false;
+    void QtWindowContext::virtual_hook(int id, void *data) {
     }
 
-    bool QtWindowContext::eventFilter(QObject *obj, QEvent *event) {
-        return AbstractWindowContext::eventFilter(obj, event);
+    bool QtWindowContext::setupHost() {
+        return true;
     }
 
 }
\ No newline at end of file

--
Gitblit v1.9.1