diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-08-07 00:11:51 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-14 20:21:12 +0200 |
commit | bdd682ea4cc21938eed080817fb931d362d8231a (patch) | |
tree | 4f9bf0a4d8d84e9f231ba2128edf1af019178ebd /src/plugins/platforms/cocoa | |
parent | 7fa8f1efbcc68dc19aceb8403c6f1ae7b28eea6a (diff) |
QtGui: use new qEnvironmentVariableIsEmpty()
In particular, static bool showRasterOverlay is safer.
Change-Id: I9df6c9a9a56d2e61b13391b6889c0ac6e259e801
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaintegration.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaintegration.mm b/src/plugins/platforms/cocoa/qcocoaintegration.mm index ccb1121276..95155f3540 100644 --- a/src/plugins/platforms/cocoa/qcocoaintegration.mm +++ b/src/plugins/platforms/cocoa/qcocoaintegration.mm @@ -165,7 +165,7 @@ QCocoaIntegration::QCocoaIntegration() NSApplication *cocoaApplication = [NSApplication sharedApplication]; - if (qgetenv("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM").isEmpty()) { + if (qEnvironmentVariableIsEmpty("QT_MAC_DISABLE_FOREGROUND_APPLICATION_TRANSFORM")) { // Applications launched from plain executables (without an app // bundle) are "background" applications that does not take keybaord // focus or have a dock icon or task switcher entry. Qt Gui apps generally |