scale coherently also the old icon during the animation

svn path=/trunk/KDE/kdelibs/; revision=1108404
This commit is contained in:
Marco Martin 2010-03-28 19:55:51 +00:00
parent aa4544bd78
commit 5560dae986

View File

@ -762,7 +762,7 @@ QPixmap IconWidgetPrivate::decoration(const QStyleOptionGraphicsItem *option, bo
oldIcon = QIcon();
} else {
result = PaintUtils::transition(
oldIcon.pixmap(iconSize.toSize(), mode, state),
oldIcon.pixmap(result.size(), mode, state),
result, hoverAnimation->value());
}
}