qt5base-lts/src
Tor Arne Vestbø 1dfc74970c Deduplicate lastWindowClosed handling
Whenever a window was closed, we had logic to check if it was the last
window, and if so emitted lastWindowClosed and then tried to quit the
application. But the automatic quit process also checked if there were
any remaining windows, as this process could be triggered as a result
of a QEventLoopLocker going out of scope. The two paths now share the
same logic for determining if there are any remaining windows.

The docs have been updated to reflect the original intent of the logic,
dealing only with primary windows (top levels without a transient parent).
This was how both the original code paths implemented their logic.

For historical reasons the Qt::WA_QuitOnClose attribute is closely
tied to the lastWindowClosed signal, and isn't merely limited to
controlling whether we try an automatic quit when the last window
closes. For now this behavior has been kept, but the docs have been
updated to clarify how the attribute is handled in practice.

Change-Id: If3d06b065236aad2e59e9091cac3146bc4cf79f6
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-16 14:33:28 +02:00
..
3rdparty Update Harfbuzz to version 3.0.0 2021-10-05 21:53:10 +02:00
android Android: Hide the keyboard when the height is less than 0 2021-10-14 17:20:58 +02:00
concurrent concurrent: Fix typo in documentation 2021-10-12 10:52:03 +00:00
corelib Deduplicate lastWindowClosed handling 2021-10-16 14:33:28 +02:00
dbus dbus: Fix typos 2021-10-14 20:22:21 +02:00
entrypoint Adjust the EntryPoint target name according to the internal module naming policy 2021-06-15 12:51:49 +02:00
gui Deduplicate lastWindowClosed handling 2021-10-16 14:33:28 +02:00
network QNetworkAccessAuthenticationManager: don't mix iterators and pointers 2021-10-14 18:16:17 +02:00
opengl Add some debug warnings to the GL paint engine regarding stencil 2021-09-23 16:27:59 +02:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdevtouch: Fix loading screen name for output mapping 2021-10-12 12:52:01 +02:00
plugins xcb: Use byte buffer for event masks 2021-10-16 12:52:29 +02:00
printsupport Doc: Remove unsupported customFilters 2021-09-03 15:14:59 +00:00
sql Fix typos in SQL driver documentation 2021-10-14 20:22:21 +02:00
testlib QTest: support initMain() in QTEST_APPLESS_MAIN 2021-10-05 21:53:10 +02:00
tools Remove zlib from bootstrap library 2021-10-16 14:33:28 +02:00
widgets Deduplicate lastWindowClosed handling 2021-10-16 14:33:28 +02:00
xml xml: Fix typos in documentation 2021-10-12 12:52:02 +02:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00