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:
parent
eece84b13c
commit
ad83b23dc4
@ -988,6 +988,11 @@ void Icon::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
||||
QGraphicsItem::mouseMoveEvent(event);
|
||||
}
|
||||
|
||||
QSizeF Icon::sizeHint() const
|
||||
{
|
||||
return d->size;
|
||||
}
|
||||
|
||||
/*
|
||||
QSizeF Icon::sizeHint() const
|
||||
{
|
||||
|
@ -164,6 +164,7 @@ public:
|
||||
|
||||
QSizeF sizeHint() const;
|
||||
*/
|
||||
QSizeF sizeHint() const;
|
||||
QRectF boundingRect() const;
|
||||
|
||||
protected:
|
||||
|
Loading…
Reference in New Issue
Block a user