]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use the native graphicssystem per default
authorPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jan 2012 11:32:06 +0000 (12:32 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jan 2012 11:34:40 +0000 (12:34 +0100)
The scaling of pixmaps is just way too slow with the raster graphicssystem (see KPixmapModifier::scalePixmap()). It is of course still possible to run Dolphin
with the raster graphicssystem, but this has to be done explicitly then.

CCBUG: 290865

src/main.cpp

index d55b5e71c18486ccbffb9efb6d7c2950cdbbb326..42a3fe4320a69fd15f3ac90536d9084b56a647ed 100644 (file)
@@ -82,6 +82,10 @@ KDE_EXPORT int kdemain(int argc, char **argv)
     options.add("+[Url]", ki18nc("@info:shell", "Document to open"));
     KCmdLineArgs::addCmdLineOptions(options);
 
+    // Use the native graphicssystem per default, as the scaling of pixmaps is just way too
+    // slow with the raster graphicssystem (see KPixmapModifier::scalePixmap()).
+    QApplication::setGraphicsSystem("native");
+
     DolphinApplication app;
     KGlobal::locale()->insertCatalog("libkonq"); // needed for applications using libkonq