From c77ab1212bd9a356ddeb03af6bb17c0bdf8ed955 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: 周一, 11 12月 2023 15:56:59 +0800 Subject: [PATCH] tweak quick API --- src/core/contexts/qtwindowcontext.cpp | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 732ecf1..631c7e2 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -40,22 +40,21 @@ #endif } - QtWindowContext::QtWindowContext(QObject *host, WindowItemDelegate *delegate) - : AbstractWindowContext(host, delegate) { + QtWindowContext::QtWindowContext() : AbstractWindowContext() { } QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setup() { - if (!m_windowHandle) { - return false; - } - return false; + QString QtWindowContext::key() const { + return "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 false; } } \ No newline at end of file -- Gitblit v1.9.1