qt5base-lts/tests/auto/other/sessionmanagement_macos/sessionmanagement_macos.pro
Samuel Gaist f81f21151d Session management for macOS
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>
2019-12-02 18:18:22 +01:00

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