mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-25 23:51:33 +08:00
Added support for printing events to diagnose window state ploblem
This commit is contained in:
parent
f2d8e17981
commit
44115d4bd9
@ -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
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -299,6 +299,7 @@ public:
|
||||
bool hasNativeTitleBar();
|
||||
#endif
|
||||
|
||||
virtual bool event(QEvent *e) override;
|
||||
}; // class FloatingDockContainer
|
||||
}
|
||||
// namespace ads
|
||||
|
Loading…
Reference in New Issue
Block a user