From dbe0566f43e52122d5556de2441dc5d24e04d1b7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 29 Jun 2008 21:54:41 +0000 Subject: Use fast image transformation like Gwenview. This increases the performance of applyImageFrame() by a factor of >2. Hmm, previews don't look so smooth as before, but even when having a 2 GHz CPU a bilinear scaling of 1000 previews just takes too much time. svn path=/trunk/KDE/kdebase/apps/; revision=826128 --- src/iconmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/iconmanager.cpp') diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp index cde3ab59e..82c35ea7d 100644 --- a/src/iconmanager.cpp +++ b/src/iconmanager.cpp @@ -489,7 +489,7 @@ bool IconManager::applyImageFrame(QPixmap& icon) void IconManager::limitToSize(QPixmap& icon, const QSize& maxSize) { if ((icon.width() > maxSize.width()) || (icon.height() > maxSize.height())) { - icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::SmoothTransformation); + icon = icon.scaled(maxSize, Qt::KeepAspectRatio, Qt::FastTransformation); } } -- cgit v1.3