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_target->property("iconRepresentation").value<QImage>());
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