f81f21151d
This patch aims to implement the session management available on macOS. Currently applicationShouldTerminate is just a go through that closes everything and ends the application. The new implementation calls first appCommitData and cancels the termination properly if required. This means that if a user wishes to logout, Qt applications can now cancel that like e.g. answering to Safari asking whether it is ok to close because of a number of opened tab/window. Fixes: QTBUG-33034 Change-Id: Id5d7416cb74c762c5424a77c9c7664f0749da7f6 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
11 lines
215 B
Prolog
11 lines
215 B
Prolog
CONFIG += testcase
|
|
TARGET = tst_sessionmanagement_macos
|
|
|
|
OBJECTIVE_SOURCES += tst_sessionmanagement_macos.mm
|
|
|
|
QT = testlib gui core
|
|
LIBS += -framework AppKit
|
|
|
|
requires(mac)
|
|
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
|