diff options
author | Samuel Gaist <samuel.gaist@edeltech.ch> | 2014-07-02 16:46:24 +0200 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2014-07-10 21:54:19 +0200 |
commit | 50c04d631858639c630e85456e7e003a80e33493 (patch) | |
tree | 21dd2c6cb9026395bfdf10056dfe35eca0f641b9 /src/plugins/platforms/cocoa/cocoa.pro | |
parent | 53ed4de02278b17708199891f9b56c6e6e04103b (diff) |
Session management for OS X
This patch aims to implement the session management available on OS X.
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.
Task-number: QTBUG-33034
Change-Id: Icedc8590a1c0934d9bc87d3a43d6702a9903bfb8
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/cocoa.pro')
-rw-r--r-- | src/plugins/platforms/cocoa/cocoa.pro | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro index ad6cb3a1fc..b8befcd497 100644 --- a/src/plugins/platforms/cocoa/cocoa.pro +++ b/src/plugins/platforms/cocoa/cocoa.pro @@ -41,7 +41,8 @@ OBJECTIVE_SOURCES += main.mm \ qcocoakeymapper.mm \ qcocoamimetypes.mm -SOURCES += messages.cpp +SOURCES += messages.cpp \ + qcocoasessionmanager.cpp HEADERS += qcocoaintegration.h \ qcocoatheme.h \ @@ -76,7 +77,8 @@ HEADERS += qcocoaintegration.h \ qcocoaintrospection.h \ qcocoakeymapper.h \ messages.h \ - qcocoamimetypes.h + qcocoamimetypes.h \ + qcocoasessionmanager.h contains(QT_CONFIG, opengl.*) { OBJECTIVE_SOURCES += qcocoaglcontext.mm |