From 1740ed5e0e765ebd8676733243eb3eaa81f95df1 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周二, 26 12月 2023 17:32:13 +0800
Subject: [PATCH] Fix window visibility inconsistency

---
 src/quick/quickitemdelegate.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/quick/quickitemdelegate.cpp b/src/quick/quickitemdelegate.cpp
index d5e2c11..63d02eb 100644
--- a/src/quick/quickitemdelegate.cpp
+++ b/src/quick/quickitemdelegate.cpp
@@ -68,6 +68,10 @@
         static_cast<QQuickWindow *>(host)->setFlags(flags);
     }
 
+    void QuickItemDelegate::setWindowVisible(QObject *host, bool visible) const {
+        static_cast<QQuickWindow *>(host)->setVisible(visible);
+    }
+
     void QuickItemDelegate::bringWindowToTop(QObject *host) const {
         static_cast<QQuickWindow *>(host)->raise();
     }

--
Gitblit v1.9.1