From 5560dae9865bdd5797cb40ced32e53bc609b617e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 28 Mar 2010 19:55:51 +0000 Subject: [PATCH] scale coherently also the old icon during the animation svn path=/trunk/KDE/kdelibs/; revision=1108404 --- widgets/iconwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/iconwidget.cpp b/widgets/iconwidget.cpp index 6f346be6d..03952aa36 100644 --- a/widgets/iconwidget.cpp +++ b/widgets/iconwidget.cpp @@ -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()); } }