]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Revert patch using the native graphicssystem as default
authorPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jan 2012 17:18:43 +0000 (18:18 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 7 Jan 2012 17:22:16 +0000 (18:22 +0100)
I'm trusting Christoph Feck's advice here. Additionally the smooth scaling
has been activated to fix bug 290865.

BUG: 290865
FIXED-IN: 4.8.0

src/kitemviews/kpixmapmodifier.cpp
src/main.cpp

index f6838c032696c205ef55fbbef267b956f9aec26a..91f22da3c14160c62edd6e7bb2b0788a74fce3f8 100644 (file)
@@ -362,10 +362,10 @@ void KPixmapModifier::scale(QPixmap& pixmap, const QSize& scaledSize)
                          0, 0, 0, 0, 0, 0, scaledPixmap.width(), scaledPixmap.height());
         pixmap = scaledPixmap;
     } else {
                          0, 0, 0, 0, 0, 0, scaledPixmap.width(), scaledPixmap.height());
         pixmap = scaledPixmap;
     } else {
-        pixmap = pixmap.scaled(scaledSize, Qt::KeepAspectRatio, Qt::FastTransformation);
+        pixmap = pixmap.scaled(scaledSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
     }
 #else
     }
 #else
-    pixmap = pixmap.scaled(scaledSize, Qt::KeepAspectRatio, Qt::FastTransformation);
+    pixmap = pixmap.scaled(scaledSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
 #endif
 }
 
 #endif
 }
 
index 42a3fe4320a69fd15f3ac90536d9084b56a647ed..d55b5e71c18486ccbffb9efb6d7c2950cdbbb326 100644 (file)
@@ -82,10 +82,6 @@ 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