the proper fix for stupid compilers *sigh* setSize(int, int) isn't virtual in Widget, but that doesn't matter in this case at all.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=773493
This commit is contained in:
Aaron J. Seigo 2008-02-11 07:56:53 +00:00
parent eed0410c56
commit e83f329de0
2 changed files with 10 additions and 0 deletions

View File

@ -1352,6 +1352,11 @@ QVariant Applet::itemChange(GraphicsItemChange change, const QVariant &value)
return Widget::itemChange(change, value);
}
void Applet::setSize(int width, int height)
{
setSize(QSizeF(width, height));
}
void Applet::setSize(const QSizeF &size)
{
setGeometry(QRectF(pos(), size));

View File

@ -729,6 +729,11 @@ class PLASMA_EXPORT Applet : public Widget
*/
QVariant itemChange(GraphicsItemChange change, const QVariant &value);
/**
* Reimplemented from QGraphicsItem
*/
void setSize(int width, int height);
/**
* Reimplemented from QGraphicsItem
*/