Trying to get the center right.
svn path=/trunk/KDE/kdelibs/; revision=1094577
This commit is contained in:
parent
02d3966f3c
commit
5506f87e55
@ -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,11 +97,9 @@ 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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user