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
This commit is contained in:
Peter Penz 2008-06-29 21:54:41 +00:00
parent 4cf8450bc4
commit dbe0566f43

View file

@ -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);
}
}