diff options
author | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-10-20 08:31:34 (GMT) |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@nokia.com> | 2009-10-20 09:13:33 (GMT) |
commit | 511c434b959be96c992e59f4a2748ac251d5c72a (patch) | |
tree | 37aa3d592203b80a11b022fbae23ed43bc662f17 /src | |
parent | 07c5dedbcd4e91c90601eb4e4c6cdd969b2d5aa0 (diff) | |
download | Qt-511c434b959be96c992e59f4a2748ac251d5c72a.zip Qt-511c434b959be96c992e59f4a2748ac251d5c72a.tar.gz Qt-511c434b959be96c992e59f4a2748ac251d5c72a.tar.bz2 |
Make the raster graphics system default on Mac.
The plan is to make this default for Cocoa on Qt 4.7. Switching
it over now will give us time to find regressions. Use
"-graphicssystem native" to escape back to CoreGraphics.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qapplication.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp index 6f6d706..ce5796b 100644 --- a/src/gui/kernel/qapplication.cpp +++ b/src/gui/kernel/qapplication.cpp @@ -936,6 +936,14 @@ void QApplicationPrivate::initialize() // Set up which span functions should be used in raster engine... qInitDrawhelperAsm(); +#ifdef QT_MAC_USE_COCOA + // Use the rater graphics system by default on Cocoa, override with + // -graphicssystem raster + if (graphics_system_name.isEmpty()) { + graphics_system_name = QLatin1String("raster"); + } +#endif + #if !defined(Q_WS_X11) && !defined(Q_WS_QWS) // initialize the graphics system - on X11 this is initialized inside // qt_init() in qapplication_x11.cpp because of several reasons. |