From 1408d89b225c822c9aca14bfa12a1ffc6cff722b Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: ćšć, 07 12æ 2023 17:43:18 +0800 Subject: [PATCH] remove not needed assert checks --- src/core/contexts/qtwindowcontext.cpp | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 4f4764e..5fa7787 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -46,15 +46,12 @@ QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setup(QObject *host, WindowItemDelegate *delegate) { - if (!AbstractWindowContext::setup(host, delegate)) { - return false; - } + bool QtWindowContext::setupHost() { return false; } - bool QtWindowContext::eventFilter(QObject *obj, QEvent *event) { - return AbstractWindowContext::eventFilter(obj, event); + bool QtWindowContext::hostEventFilter(QEvent *event) { + return false; } } \ No newline at end of file -- Gitblit v1.9.1