From 27604c5152cd9b768c31cbb1947e0138cea2c484 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 13 12月 2023 23:35:11 +0800 Subject: [PATCH] Remove qwkcoreglobal --- src/core/contexts/qtwindowcontext.cpp | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 4f4764e..ea2bba5 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -46,15 +46,15 @@ QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setup(QObject *host, WindowItemDelegate *delegate) { - if (!AbstractWindowContext::setup(host, delegate)) { - return false; - } - return false; + QString QtWindowContext::key() const { + return QStringLiteral("qt"); } - bool QtWindowContext::eventFilter(QObject *obj, QEvent *event) { - return AbstractWindowContext::eventFilter(obj, event); + void QtWindowContext::virtual_hook(int id, void *data) { + } + + bool QtWindowContext::setupHost() { + return true; } } \ No newline at end of file -- Gitblit v1.9.1