Reimplement sizeHint() in Plasma::Icon, otherwise an invalid size hint gets returned.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=699874
This commit is contained in:
Robert Knight 2007-08-14 06:59:36 +00:00
parent eece84b13c
commit ad83b23dc4
2 changed files with 6 additions and 0 deletions

View File

@ -988,6 +988,11 @@ void Icon::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
QGraphicsItem::mouseMoveEvent(event);
}
QSizeF Icon::sizeHint() const
{
return d->size;
}
/*
QSizeF Icon::sizeHint() const
{

View File

@ -164,6 +164,7 @@ public:
QSizeF sizeHint() const;
*/
QSizeF sizeHint() const;
QRectF boundingRect() const;
protected: