From a7c77bd46ef85bae624e829cb2a02110ec60b318 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Wed, 16 Nov 2011 12:17:04 +0100 Subject: Partially revert "Set the graphics system name in the graphics system factory." MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This actually breaks runtime graphicssystem in all configurations as far as I can tell, but definitely in the following setup: -graphicssystem runtime -runtimegraphicssystem meego Qt creates the runtime graphicssystem, which then sees it should create a MeeGo GS instance. This then calls qgraphicssystemfactory::create("meego"), which was overwriting graphics_system_name (incorrectly!) Harmattan's Qt does not do this, and thus, is able to switch graphicssystems correctly. This partially reverts commit b595c2fbe0fa354190b713ef09dd1f348e22e2b6. Merge-request: 2718 Reviewed-by: Samuel Rødal --- src/gui/painting/qgraphicssystemfactory.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/painting/qgraphicssystemfactory.cpp b/src/gui/painting/qgraphicssystemfactory.cpp index 01ece09..b817a90 100644 --- a/src/gui/painting/qgraphicssystemfactory.cpp +++ b/src/gui/painting/qgraphicssystemfactory.cpp @@ -45,7 +45,6 @@ #include "qmutex.h" #include "qapplication.h" -#include #include "qgraphicssystem_raster_p.h" #include "qgraphicssystem_runtime_p.h" #include "qdebug.h" @@ -80,7 +79,6 @@ QGraphicsSystem *QGraphicsSystemFactory::create(const QString& key) } #endif - QApplicationPrivate::graphics_system_name = system; if (system == QLatin1String("raster")) return new QRasterGraphicsSystem; else if (system == QLatin1String("runtime")) -- cgit v0.12