qt5base-lts/examples/widgets/mainwindows/application
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
..
images Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
application.pro Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
application.qrc Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
main.cpp Polish the widgets/mainwindows/application example. 2015-07-13 10:18:40 +00:00
mainwindow.cpp Add option to disable "session management by closing windows". 2016-02-15 16:10:20 +00:00
mainwindow.h Add option to disable "session management by closing windows". 2016-02-15 16:10:20 +00:00