From 5506f87e55dc3c6a5380160da8274a915d44ac78 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Da Silva Date: Mon, 22 Feb 2010 22:31:14 +0000 Subject: [PATCH] Trying to get the center right. svn path=/trunk/KDE/kdelibs/; revision=1094577 --- animations/pulsershadow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/animations/pulsershadow.cpp b/animations/pulsershadow.cpp index c14caa38c..b250cd94d 100644 --- a/animations/pulsershadow.cpp +++ b/animations/pulsershadow.cpp @@ -78,7 +78,7 @@ void ShadowFake::setTarget(QGraphicsWidget *target) m_photo = QPixmap::fromImage( m_target->property("iconRepresentation").value()); resize(m_photo.size()); - + setTransformOriginPoint(target->geometry().center()); } else { resize(target->size()); @@ -97,10 +97,8 @@ void ShadowFake::setTarget(QGraphicsWidget *target) target->paint(&painter, &style, 0); paintSubChildren(&painter, &style, target); painter.end(); - + setTransformOriginPoint(geometry().center()); } - - setTransformOriginPoint(geometry().center()); } QGraphicsWidget *ShadowFake::target() const