Renamed signal to windowActiveAboutToChange()

Added the 'aboutTo', as the event hasn't been caught by the top-level
window yet
This commit is contained in:
Sergio Martins
2020-11-09 13:46:16 +00:00
parent b93f115b53
commit e9a321039f
3 changed files with 6 additions and 3 deletions

View File

@@ -602,7 +602,7 @@ bool DockWidgetBase::eventFilter(QObject *watched, QEvent *event)
const bool isWindowActivate = event->type() == QEvent::WindowActivate;
const bool isWindowDeactivate = event->type() == QEvent::WindowDeactivate;
if (isWindowActivate || isWindowDeactivate)
Q_EMIT windowActiveChanged(isWindowActivate);
Q_EMIT windowActiveAboutToChange(isWindowActivate);
return QWidgetAdapter::eventFilter(watched, event);
}