From e83f329de089323ef8baee3e9f2178a490d6537b Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 11 Feb 2008 07:56:53 +0000 Subject: [PATCH] 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 --- applet.cpp | 5 +++++ applet.h | 5 +++++ 2 files changed, 10 insertions(+) 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 */