Trying to get the center right.

svn path=/trunk/KDE/kdelibs/; revision=1094577
This commit is contained in:
Adenilson Cavalcanti Da Silva 2010-02-22 22:31:14 +00:00
parent 02d3966f3c
commit 5506f87e55

View File

@ -78,7 +78,7 @@ void ShadowFake::setTarget(QGraphicsWidget *target)
m_photo = QPixmap::fromImage( m_photo = QPixmap::fromImage(
m_target->property("iconRepresentation").value<QImage>()); m_target->property("iconRepresentation").value<QImage>());
resize(m_photo.size()); resize(m_photo.size());
setTransformOriginPoint(target->geometry().center());
} else { } else {
resize(target->size()); resize(target->size());
@ -97,10 +97,8 @@ void ShadowFake::setTarget(QGraphicsWidget *target)
target->paint(&painter, &style, 0); target->paint(&painter, &style, 0);
paintSubChildren(&painter, &style, target); paintSubChildren(&painter, &style, target);
painter.end(); painter.end();
setTransformOriginPoint(geometry().center());
} }
setTransformOriginPoint(geometry().center());
} }
QGraphicsWidget *ShadowFake::target() const QGraphicsWidget *ShadowFake::target() const