Set the default graphics system to raster.

This change is specific to Mac OS X/Cocoa.

Reviewed-by: Lars Knoll
(cherry picked from commit 2c2026df66f237b7313397dd74f6bc3212b94596)
This commit is contained in:
Fabien Freling 2011-04-26 12:34:00 +02:00
parent 8ac73771c6
commit 68857f9045

View File

@ -74,7 +74,7 @@ QGraphicsSystem *QGraphicsSystemFactory::create(const QString& key)
if (system.isEmpty()) { if (system.isEmpty()) {
system = QLatin1String("runtime"); system = QLatin1String("runtime");
} }
#elif defined (QT_GRAPHICSSYSTEM_RASTER) && !defined(Q_WS_WIN) && !defined(Q_OS_SYMBIAN) || defined(Q_WS_X11) #elif defined (QT_GRAPHICSSYSTEM_RASTER) && !defined(Q_WS_WIN) && !defined(Q_OS_SYMBIAN) || defined(Q_WS_X11) || (defined (Q_WS_MAC) && defined(QT_MAC_USE_COCOA))
if (system.isEmpty()) { if (system.isEmpty()) {
system = QLatin1String("raster"); system = QLatin1String("raster");
} }