From eca4936ea213536966738d6fd4e076b493afa5b4 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 23 Nov 2012 15:29:03 +0100 Subject: Move session management code from QApplication to QGuiApplication. QSessionManager was already in QtGui, but not usable since the only API to get to it was still in QtWidgets. Session management isn't related to widgets, it also applies to QML apps on the desktop. The virtual commitData and saveState methods have been removed, given the two signals which exist since 4.2, and an additional isSessionSaving() method was added instead. Change-Id: I8099e70df133303e74456706827da21f013fcc6a Reviewed-by: Friedemann Kleint Reviewed-by: Lars Knoll --- dist/changes-5.0.0 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dist') diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index 12bff6d6ce..056b7506f0 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -611,6 +611,12 @@ QtWidgets by QAbstractProxyModel and related classes. A copy of QProxyModel is available in the UiHelpers library. +* The virtual methods QApplication::commitData and QApplication::saveState, used for session + management, no longer exist. + Connect to the commitDataRequest and saveStateRequest signals instead. + The new isSessionSaving() method can be used in the cases where the closeEvent of your + window needs to know whether it is being called during shutdown. + * [QTBUG-20503] QFileSystemModel no longer masks out write permissions from the permissions returned from permissions() or data(FilePermissions), even if in read-only mode (QFileSystemModel::isReadOnly()). -- cgit v1.2.3