From 8676ce117d663cf581fc82db6be1b29a404e6353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Sat, 19 May 2007 21:12:40 +0000 Subject: [PATCH] Call to DataVisualization() constructor, fixme note. I strongly hate to break my promises. This is REALLY the last commit svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666427 --- widgets/radiobutton.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widgets/radiobutton.cpp b/widgets/radiobutton.cpp index 9390a6b52..85690c309 100644 --- a/widgets/radiobutton.cpp +++ b/widgets/radiobutton.cpp @@ -61,7 +61,8 @@ RadioButton::Private::~Private() RadioButton::RadioButton(QGraphicsItem *parent) - : QGraphicsItem(parent) + : DataVisualization() + , QGraphicsItem(parent) , d(new Private) { setAcceptedMouseButtons(Qt::LeftButton); @@ -75,7 +76,7 @@ RadioButton::~RadioButton() QRectF RadioButton::boundingRect() const { - return QRectF(0, 0, 150, 30); + return QRectF(0, 0, 150, 30); // FIXME: this is obviously wrong } void RadioButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) @@ -149,6 +150,7 @@ void RadioButton::setText(const QString &text) void RadioButton::updated(const Plasma::DataSource::Data &data) { + Q_UNUSED(data); } void RadioButton::mousePressEvent(QGraphicsSceneMouseEvent *event)