mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
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:
parent
4cf8450bc4
commit
dbe0566f43
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue