]> 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:37:15 +0000 (12:37 +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 631897337c04aab15a01acd08d2d777f60458169..2cc794a543f138d0aa3c248d12ad206298878b70 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);
 
     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
 
     DolphinApplication app;
     KGlobal::locale()->insertCatalog("libkonq"); // needed for applications using libkonq