OSDN Git Service

substitue native graphics system request with raster, with a warning
authorIvailo Monev <xakepa10@laimg.moc>
Mon, 8 Aug 2016 18:28:36 +0000 (18:28 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Mon, 8 Aug 2016 18:28:36 +0000 (18:28 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/painting/qgraphicssystemfactory.cpp

index 1242084..6b3d0e3 100644 (file)
@@ -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) {