diff --git a/applet.cpp b/applet.cpp index 5c75d32e8..4d0e5a539 100644 --- a/applet.cpp +++ b/applet.cpp @@ -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)); diff --git a/applet.h b/applet.h index 996a917c9..2991511b9 100644 --- a/applet.h +++ b/applet.h @@ -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 */