From 28f143c5b3c735faa88f9789743729d8933404be Mon Sep 17 00:00:00 2001
From: Zhao Yuhang <2546789017@qq.com>
Date: 周二, 19 12月 2023 19:40:17 +0800
Subject: [PATCH] add win32 raise window

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

diff --git a/src/widgets/widgetitemdelegate.cpp b/src/widgets/widgetitemdelegate.cpp
index f6cb467..07c8aa3 100644
--- a/src/widgets/widgetitemdelegate.cpp
+++ b/src/widgets/widgetitemdelegate.cpp
@@ -98,4 +98,8 @@
         static_cast<QWidget *>(host)->setWindowFlags(flags);
     }
 
+    void WidgetItemDelegate::bringWindowToTop(QObject *host) const {
+        static_cast<QWidget *>(host)->raise();
+    }
+
 }
\ No newline at end of file

--
Gitblit v1.9.1