25 lines
918 B
Diff
25 lines
918 B
Diff
From: =?utf-8?b?6Z+p5ZOB6b6Z?= <hanpinlong@kylinos.cn>
|
|
Date: Mon, 15 Jan 2024 14:36:15 +0800
|
|
Subject: =?utf-8?b?5L+u5aSN5bqU55So5YWz6Zet5ZCO5LuO5omY55uY5aSE54K55Ye75Ye6?=
|
|
=?utf-8?b?5p2l5ZCOaG92ZXLnirbmgIHlvILluLjnmoTpl67popg=?=
|
|
|
|
---
|
|
src/widgets/kernel/qwidget.cpp | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/widgets/kernel/qwidget.cpp b/src/widgets/kernel/qwidget.cpp
|
|
index e945200..e7f03bb 100644
|
|
--- a/src/widgets/kernel/qwidget.cpp
|
|
+++ b/src/widgets/kernel/qwidget.cpp
|
|
@@ -8959,7 +8959,10 @@ bool QWidget::event(QEvent *event)
|
|
for (int i = 0; i < childList.size(); ++i) {
|
|
QWidget *w = qobject_cast<QWidget *>(childList.at(i));
|
|
if (w && w->isVisible() && !w->isWindow())
|
|
+ {
|
|
QCoreApplication::sendEvent(w, event);
|
|
+ QCoreApplication::sendEvent(w, new QEvent(QEvent::Leave));
|
|
+ }
|
|
}
|
|
break; }
|
|
|