From abdad66bae077da6c3480db457beb47df5eda813 Mon Sep 17 00:00:00 2001
From: SineStriker <trueful@163.com>
Date: 周六, 16 12月 2023 19:27:16 +0800
Subject: [PATCH] Fix mac window mistakes

---
 src/core/contexts/abstractwindowcontext_p.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h
index bcc6ae8..db12f87 100644
--- a/src/core/contexts/abstractwindowcontext_p.h
+++ b/src/core/contexts/abstractwindowcontext_p.h
@@ -25,6 +25,7 @@
 
         inline QObject *host() const;
         inline QWindow *window() const;
+        inline WindowItemDelegate *delegate() const;
 
         inline bool isHitTestVisible(const QObject *obj) const;
         bool setHitTestVisible(const QObject *obj, bool visible);
@@ -79,6 +80,10 @@
         return m_windowHandle;
     }
 
+    inline WindowItemDelegate *AbstractWindowContext::delegate() const {
+        return m_delegate.get();
+    }
+
     inline bool AbstractWindowContext::isHitTestVisible(const QObject *obj) const {
         return m_hitTestVisibleItems.contains(obj);
     }

--
Gitblit v1.9.1