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()
1337
1337
}
1338
1338
#endif
1339
1339
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
+ }
1340
1353
} // namespace ads
1341
1354
1342
1355
// ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ private Q_SLOTS:
299
299
bool hasNativeTitleBar ();
300
300
#endif
301
301
302
+ virtual bool event (QEvent *e) override ;
302
303
}; // class FloatingDockContainer
303
304
}
304
305
// namespace ads
You can’t perform that action at this time.
0 commit comments