From 2005ce0c65d4ad439bf1731360af497cd4d92e3a Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: ćšć, 14 12æ 2023 21:40:43 +0800 Subject: [PATCH] minor improvement --- src/core/contexts/qtwindowcontext.cpp | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 5fa7787..ee5d27d 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -43,15 +43,17 @@ QtWindowContext::QtWindowContext() : AbstractWindowContext() { } - QtWindowContext::~QtWindowContext() { + QtWindowContext::~QtWindowContext() = default; + + QString QtWindowContext::key() const { + return QStringLiteral("qt"); + } + + void QtWindowContext::virtual_hook(int id, void *data) { } bool QtWindowContext::setupHost() { - return false; - } - - bool QtWindowContext::hostEventFilter(QEvent *event) { - return false; + return true; } } \ No newline at end of file -- Gitblit v1.9.1