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:
parent
abd156ece2
commit
40ae48275a
@ -90,7 +90,7 @@ void PushButton::updated(const QString&, const DataEngine::Data &data)
|
|||||||
|
|
||||||
QRectF PushButton::boundingRect() const
|
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)
|
void PushButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
|
Loading…
Reference in New Issue
Block a user