修复应用关闭后从托盘处点击出来后hover状态异常的问题
This commit is contained in:
parent
a4c5c3f3fe
commit
d1469cf348
|
@ -8959,7 +8959,10 @@ bool QWidget::event(QEvent *event)
|
||||||
for (int i = 0; i < childList.size(); ++i) {
|
for (int i = 0; i < childList.size(); ++i) {
|
||||||
QWidget *w = qobject_cast<QWidget *>(childList.at(i));
|
QWidget *w = qobject_cast<QWidget *>(childList.at(i));
|
||||||
if (w && w->isVisible() && !w->isWindow())
|
if (w && w->isVisible() && !w->isWindow())
|
||||||
|
{
|
||||||
QCoreApplication::sendEvent(w, event);
|
QCoreApplication::sendEvent(w, event);
|
||||||
|
QCoreApplication::sendEvent(w, new QEvent(QEvent::Leave));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break; }
|
break; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue