qt6-bb10/examples/widgets
Andreas Hartmetz e7bf0edfd4 Add option to disable "session management by closing windows".
That feature is a poor man's session management for applications
that do not implement any specific session management features.
It badly interferes with proper session management support, so
applications must be able to disable it.

This enables fixing applications with
QGuiApplication::quitOnLastWindowClosed() true - the default -
dying too early, before they are enumerated for the list of
applications to restart on session restore, thus preventing them
from being restored. See
https://bugs.kde.org/show_bug.cgi?id=354724

[ChangeLog][QtGui] Qt asking to close windows on session exit as
a fallback session management mechanism has been made optional.
Disabling it fixes session management for applications that
implement full session management. See
QGuiApplication::isFallbackSessionManagementEnabled().

Task-number: QTBUG-49667
Change-Id: Ib22e58c9c64351dea8b7e2a74db91d26dd7ab7aa
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: David Faure <david.faure@kdab.com>
2016-02-15 16:10:20 +00:00
..
animation Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
desktop Doc: removed double occurrence of systray.qdoc 2016-01-26 09:39:21 +00:00
dialogs Standarddialogs example: Adapt layout for fullscreen platforms. 2015-12-09 10:22:55 +00:00
doc Polish the Tablet example 2016-01-28 19:17:08 +00:00
draganddrop Polish DnD Examples. 2015-10-09 15:59:21 +00:00
effects Use C++ <cmath> instead of <math.h> 2015-02-16 16:21:15 +00:00
gestures Examples/Doc snippets: Fix single-character string literals. 2015-10-13 16:37:07 +00:00
graphicsview Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
itemviews Examples/Doc snippets: Fix single-character string literals. 2015-10-13 16:37:07 +00:00
layouts Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
mac Fixed license headers 2015-02-17 18:46:09 +00:00
mainwindows Add option to disable "session management by closing windows". 2016-02-15 16:10:20 +00:00
painting examples: remove use of obsolete QStyleOption*V<N> typedefs 2015-11-02 18:43:26 +00:00
richtext TextEdit example: fix build when clipboard is disabled. 2015-10-19 14:56:45 +00:00
scroller Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
statemachine Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
tools Doc: Added brief statement for examples overview page 2016-01-26 09:32:49 +00:00
tutorials Examples/Doc snippets: Fix single-character string literals. 2015-10-13 16:37:07 +00:00
widgets Polish the Tablet example 2016-01-28 19:17:08 +00:00
windowcontainer Make the windowcontainer example more robust 2015-05-12 08:58:47 +00:00
widgets.pro purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00