The bounding rect is relative to the item's local coordinate system, not

the parent's one.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=689841
This commit is contained in:
Andre Duffeck 2007-07-19 09:37:08 +00:00
parent abd156ece2
commit 40ae48275a

View File

@ -90,7 +90,7 @@ void PushButton::updated(const QString&, const DataEngine::Data &data)
QRectF PushButton::boundingRect() const
{
return QRectF(x(), y(), d->width, d->height);
return QRectF(0, 0, d->width, d->height);
}
void PushButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)