summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qwindowsurface_s60.cpp
diff options
context:
space:
mode:
authorJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-05-28 14:30:26 (GMT)
committerJani Hautakangas <ext-jani.hautakangas@nokia.com>2010-05-28 14:33:20 (GMT)
commitb42315c1d7811a0997181e188fc39a368ac9175f (patch)
treec71f5ce19e50a2259075131584ca2961c82ee7c3 /src/gui/painting/qwindowsurface_s60.cpp
parent22b583438b8ef83535b0b94b695aba22a09cea2b (diff)
downloadQt-b42315c1d7811a0997181e188fc39a368ac9175f.zip
Qt-b42315c1d7811a0997181e188fc39a368ac9175f.tar.gz
Qt-b42315c1d7811a0997181e188fc39a368ac9175f.tar.bz2
Add runtime_graphics_system flag to QApplicationPrivate.
This flag can be internally used to detect if QRuntimeGraphicsSystem is used. In some cases Qt needs to know if runtime graphics system is used and it's better to have a flag than relsolving graphics system name every time. Reviewed-by: Jason Barron
Diffstat (limited to 'src/gui/painting/qwindowsurface_s60.cpp')
-rw-r--r--src/gui/painting/qwindowsurface_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qwindowsurface_s60.cpp b/src/gui/painting/qwindowsurface_s60.cpp
index 93d4d18..477bd93 100644
--- a/src/gui/painting/qwindowsurface_s60.cpp
+++ b/src/gui/painting/qwindowsurface_s60.cpp
@@ -88,7 +88,7 @@ QS60WindowSurface::QS60WindowSurface(QWidget* widget)
QS60WindowSurface::~QS60WindowSurface()
{
#if defined(QT_GRAPHICSSYSTEM_RUNTIME) && defined(Q_SYMBIAN_SUPPORTS_SURFACES)
- if(QApplicationPrivate::graphics_system_name == QLatin1String("runtime")) {
+ if(QApplicationPrivate::runtime_graphics_system) {
QRuntimeGraphicsSystem *runtimeGraphicsSystem =
static_cast<QRuntimeGraphicsSystem*>(QApplicationPrivate::graphics_system);
if(runtimeGraphicsSystem->graphicsSystemName() == QLatin1String("openvg")) {