qt5base-lts/tests/auto/widgets
Tor Arne Vestbø 132ed5eb51 Centralize maybeLastWindowClosed checking in QWindow
Instead of plumbing QWidgetWindow close events via handleCloseEvent,
we just implement closeEvent directly. This allows QWindow do save
the state of the window/widget before the close event, so that we
know whether we should trigger lastWindowClosed handling, even if
the window was deleted as a result of the close event.

This also relieves QGuiApplication and QApplication from dealing
with the close logic in their notify functions, so that these
functions can focus on the propagation of events -- not how the
event is handled.

Change-Id: I8b586b53a53b1df1d8630c1acb635c60f191bb4b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-20 21:17:08 +02:00
..
dialogs Activate tst_QDialog::showAsTool test on macOS 2021-10-11 15:48:33 +02:00
effects Fix tst_qgraphicseffect on Wayland 2021-03-11 08:04:21 +01:00
graphicsview Remove conditioning on Android embedded 2021-09-17 17:30:14 +02:00
itemviews Select a single range of cells in QTableView, away from merged cells 2021-10-12 09:07:54 +02:00
kernel Centralize maybeLastWindowClosed checking in QWindow 2021-10-20 21:17:08 +02:00
styles Implement missing support for 'em' and 'ex' lengths in style sheet 2021-08-10 19:43:02 +02:00
util Fix references to QGuiApplication::lastWindowClosed 2021-10-13 22:30:08 +02:00
widgets Make QMainWindow::restoreStateSizeChanged test less time sensitive 2021-10-20 18:05:15 +02:00
CMakeLists.txt Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00