From 40ae48275a1f4105348984a1e8ca9f77f50f5d2b Mon Sep 17 00:00:00 2001 From: Andre Duffeck Date: Thu, 19 Jul 2007 09:37:08 +0000 Subject: [PATCH] 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 --- widgets/pushbutton.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/pushbutton.cpp b/widgets/pushbutton.cpp index b83cece01..6c89d3248 100644 --- a/widgets/pushbutton.cpp +++ b/widgets/pushbutton.cpp @@ -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)