summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qgraphicssystemfactory.cpp
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-07-09 09:52:42 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-07-09 09:52:42 (GMT)
commitd641198fa71fadd243e84dfdf02b9a0536a27b3f (patch)
tree757ad59cc291e0ef93298350d7e52e4253b25cf4 /src/gui/painting/qgraphicssystemfactory.cpp
parent31ac2e0cc72f04731e5a98437b2d49c2cfb182a5 (diff)
downloadQt-d641198fa71fadd243e84dfdf02b9a0536a27b3f.zip
Qt-d641198fa71fadd243e84dfdf02b9a0536a27b3f.tar.gz
Qt-d641198fa71fadd243e84dfdf02b9a0536a27b3f.tar.bz2
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.
Diffstat (limited to 'src/gui/painting/qgraphicssystemfactory.cpp')
-rw-r--r--src/gui/painting/qgraphicssystemfactory.cpp4
1 files changed, 4 insertions, 0 deletions
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");