summaryrefslogtreecommitdiffstats
path: root/mkspecs/macx-g++
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-08-03 16:22:22 -0700
committerJake Petroules <jake.petroules@qt.io>2017-08-08 21:42:00 +0000
commit38bfe7a2793f74fc1d42a83016c1aeda4dbd7d78 (patch)
tree1fb4ca49c059b4b1e13a825d7312294bd22af407 /mkspecs/macx-g++
parent3ec3f2a5da0b0c87eed83cd348540a3040ad27a5 (diff)
Add NSSupportsAutomaticGraphicsSwitching key to Info.plist app templates
This will allow Qt Quick applications to use the integrated GPU on compatible Apple hardware, which helps preserve battery life. Change-Id: I9224bd408930e2ed3dd8a022432512e78d69c195 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'mkspecs/macx-g++')
-rw-r--r--mkspecs/macx-g++/Info.plist.app2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/macx-g++/Info.plist.app b/mkspecs/macx-g++/Info.plist.app
index b76856d3c8..ebd108dadf 100644
--- a/mkspecs/macx-g++/Info.plist.app
+++ b/mkspecs/macx-g++/Info.plist.app
@@ -18,5 +18,7 @@
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
+ <true/>
</dict>
</plist>