From af9b207ff92b7af228c34afc83015cde1cffada1 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 8 Aug 2016 18:28:36 +0000 Subject: [PATCH] substitue native graphics system request with raster, with a warning Signed-off-by: Ivailo Monev --- src/gui/painting/qgraphicssystemfactory.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/gui/painting/qgraphicssystemfactory.cpp b/src/gui/painting/qgraphicssystemfactory.cpp index 12420844d..6b3d0e34b 100644 --- a/src/gui/painting/qgraphicssystemfactory.cpp +++ b/src/gui/painting/qgraphicssystemfactory.cpp @@ -70,10 +70,14 @@ QGraphicsSystem *QGraphicsSystemFactory::create(const QString& key) } #endif - if (system == QLatin1String("raster")) + if (system == QLatin1String("raster")) { return new QRasterGraphicsSystem; - else if (system.isEmpty()) + } else if (system == QLatin1String("native")) { + qWarning() << "Attempt to load native graphicssystem"; + return new QRasterGraphicsSystem; + } else if (system.isEmpty()) { return 0; + } #ifndef QT_NO_LIBRARY if (!ret) { -- 2.11.0