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 |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/core/contexts/qtwindowcontext.cpp b/src/core/contexts/qtwindowcontext.cpp
index a9740f1..4f4764e 100644
--- a/src/core/contexts/qtwindowcontext.cpp
+++ b/src/core/contexts/qtwindowcontext.cpp
@@ -40,14 +40,16 @@
 #endif
     }
 
-    QtWindowContext::QtWindowContext(QWindow *window, WindowItemDelegate *delegate)
-        : AbstractWindowContext(window, delegate) {
+    QtWindowContext::QtWindowContext() : AbstractWindowContext() {
     }
 
     QtWindowContext::~QtWindowContext() {
     }
 
-    bool QtWindowContext::setup() {
+    bool QtWindowContext::setup(QObject *host, WindowItemDelegate *delegate) {
+        if (!AbstractWindowContext::setup(host, delegate)) {
+            return false;
+        }
         return false;
     }
 

--
Gitblit v1.9.1