From 22c6f8e31bac796d30c98a081cbcfc4a5b28594e Mon Sep 17 00:00:00 2001 From: Igor Trindade Oliveira Date: Mon, 7 Dec 2009 19:55:22 +0000 Subject: [PATCH] fix zoom animation: change transform origin point to widget center svn path=/trunk/KDE/kdelibs/; revision=1059966 --- animations/zoom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/animations/zoom.cpp b/animations/zoom.cpp index 63e49e3f5..f9cbd2c3e 100644 --- a/animations/zoom.cpp +++ b/animations/zoom.cpp @@ -53,6 +53,7 @@ void ZoomAnimation::updateState(QAbstractAnimation::State newState, QAbstractAni } if (oldState == Stopped && newState == Running) { + w->setTransformOriginPoint(w->size().width()/2, w->size().height()/2); w->setScale(direction() == Forward ? 1 : m_zoom); } else if (newState == Stopped) { w->setScale(direction() == Forward ? m_zoom : 1);