Added support for printing events to diagnose window state ploblem

This commit is contained in:
Uwe Kindler
2023-04-28 08:33:45 +02:00
parent f2d8e17981
commit 44115d4bd9
2 changed files with 14 additions and 0 deletions

View File

@@ -1337,6 +1337,19 @@ bool CFloatingDockContainer::hasNativeTitleBar()
}
#endif
//============================================================================
bool CFloatingDockContainer::event(QEvent *e)
{
qDebug() << "CFloatingDockContainer::event: " << e;
if (e->type() == QEvent::WindowStateChange)
{
QWindowStateChangeEvent* ev = static_cast<QWindowStateChangeEvent*>(e);
qDebug() << "WindowStateChange " << ev->oldState() << " -> " << windowState();
qDebug() << "isActiveWindow " << isActiveWindow();
}
return Super::event(e);
}
} // namespace ads
//---------------------------------------------------------------------------