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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user