From 1a1f26d9e4ab6a4fe51baa78e40c4cdf3f402bcf Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: ćšć, 07 12æ 2023 14:27:00 +0800 Subject: [PATCH] Add context factory --- src/core/contexts/qtwindowcontext.cpp | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp index 732ecf1..4f4764e 100644 --- a/src/core/contexts/qtwindowcontext.cpp +++ b/src/core/contexts/qtwindowcontext.cpp @@ -40,15 +40,14 @@ #endif } - QtWindowContext::QtWindowContext(QObject *host, WindowItemDelegate *delegate) - : AbstractWindowContext(host, delegate) { + QtWindowContext::QtWindowContext() : AbstractWindowContext() { } QtWindowContext::~QtWindowContext() { } - bool QtWindowContext::setup() { - if (!m_windowHandle) { + bool QtWindowContext::setup(QObject *host, WindowItemDelegate *delegate) { + if (!AbstractWindowContext::setup(host, delegate)) { return false; } return false; -- Gitblit v1.9.1