From 2a1e707b1cf530b00a5c0f3766466f10bd617619 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周三, 13 12月 2023 20:37:56 +0800 Subject: [PATCH] add WIP mac imp --- src/core/contexts/qtwindowcontext.cpp | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 5fa7787..ea2bba5 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -46,12 +46,15 @@ QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setupHost() { - return false; + QString QtWindowContext::key() const { + return QStringLiteral("qt"); } - bool QtWindowContext::hostEventFilter(QEvent *event) { - return false; + void QtWindowContext::virtual_hook(int id, void *data) { + } + + bool QtWindowContext::setupHost() { + return true; } } \ No newline at end of file -- Gitblit v1.9.1