From d641198fa71fadd243e84dfdf02b9a0536a27b3f Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Thu, 9 Jul 2009 11:52:42 +0200 Subject: Use OpenVG graphics system by default if Qt is configured to do so. Add the same behavior as the other graphics systems such that if Qt is configured with -graphicssystem openvg, the OpenVG graphics system will be used by default. --- src/gui/painting/qgraphicssystemfactory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/painting/qgraphicssystemfactory.cpp b/src/gui/painting/qgraphicssystemfactory.cpp index 5076da8..f0a6586 100644 --- a/src/gui/painting/qgraphicssystemfactory.cpp +++ b/src/gui/painting/qgraphicssystemfactory.cpp @@ -64,6 +64,10 @@ QGraphicsSystem *QGraphicsSystemFactory::create(const QString& key) if (system.isEmpty()) { system = QLatin1String("opengl"); } +#elif defined (QT_GRAPHICSSYSTEM_OPENVG) + if (system.isEmpty()) { + system = QLatin1String("openvg"); + } #elif defined (QT_GRAPHICSSYSTEM_RASTER) && !defined(Q_WS_WIN) && !defined(Q_WS_S60) if (system.isEmpty()) { system = QLatin1String("raster"); -- cgit v0.12