File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1337,6 +1337,19 @@ bool CFloatingDockContainer::hasNativeTitleBar()
13371337}
13381338#endif
13391339
1340+
1341+ // ============================================================================
1342+ bool CFloatingDockContainer::event (QEvent *e)
1343+ {
1344+ qDebug () << " CFloatingDockContainer::event: " << e;
1345+ if (e->type () == QEvent::WindowStateChange)
1346+ {
1347+ QWindowStateChangeEvent* ev = static_cast <QWindowStateChangeEvent*>(e);
1348+ qDebug () << " WindowStateChange " << ev->oldState () << " -> " << windowState ();
1349+ qDebug () << " isActiveWindow " << isActiveWindow ();
1350+ }
1351+ return Super::event (e);
1352+ }
13401353} // namespace ads
13411354
13421355// ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ private Q_SLOTS:
299299 bool hasNativeTitleBar ();
300300#endif
301301
302+ virtual bool event (QEvent *e) override ;
302303}; // class FloatingDockContainer
303304}
304305 // namespace ads
You can’t perform that action at this time.
0 commit comments