┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-29 21:54:41 +0000
committerPeter Penz <[email protected]>2008-06-29 21:54:41 +0000
commitdbe0566f43e52122d5556de2441dc5d24e04d1b7 (patch)
tree42c2152b3ddda31bbf9751a06fd41e6c4efdd2e0 /src
parent4cf8450bc4df6bbd8a307a087de54f3986ee4a33 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}