From c3c6647e7888b7dbe9d9d22fb77bf08104a3653c Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周一, 11 12月 2023 02:14:32 +0800 Subject: [PATCH] refactor --- src/core/contexts/qtwindowcontext.cpp | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 732ecf1..0eaf7c8 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -40,22 +40,14 @@ #endif } - QtWindowContext::QtWindowContext(QObject *host, WindowItemDelegate *delegate) - : AbstractWindowContext(host, delegate) { + QtWindowContext::QtWindowContext() : AbstractWindowContext() { } QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setup() { - if (!m_windowHandle) { - return false; - } + bool QtWindowContext::setupHost() { return false; - } - - bool QtWindowContext::eventFilter(QObject *obj, QEvent *event) { - return AbstractWindowContext::eventFilter(obj, event); } } \ No newline at end of file -- Gitblit v1.9.1