From f5d9bd205546d11a73dcfb6ee20396b6e0a098ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Sat, 19 May 2007 21:03:21 +0000 Subject: [PATCH] OK, last commit about this. I promise :) svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666426 --- widgets/radiobutton.cpp | 8 ++++---- widgets/radiobutton.h | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/widgets/radiobutton.cpp b/widgets/radiobutton.cpp index 0b5195fab..9390a6b52 100644 --- a/widgets/radiobutton.cpp +++ b/widgets/radiobutton.cpp @@ -73,10 +73,6 @@ RadioButton::~RadioButton() delete d; } -void RadioButton::updated(const Plasma::DataSource::Data&) -{ -} - QRectF RadioButton::boundingRect() const { return QRectF(0, 0, 150, 30); @@ -151,6 +147,10 @@ void RadioButton::setText(const QString &text) update(); } +void RadioButton::updated(const Plasma::DataSource::Data &data) +{ +} + void RadioButton::mousePressEvent(QGraphicsSceneMouseEvent *event) { event->accept(); diff --git a/widgets/radiobutton.h b/widgets/radiobutton.h index 4e4f11fea..b27a1b182 100644 --- a/widgets/radiobutton.h +++ b/widgets/radiobutton.h @@ -59,9 +59,6 @@ public: RadioButton(QGraphicsItem *parent = 0); virtual ~RadioButton(); - // DataVisualization overriden virtual methods - void updated(const Plasma::DataSource::Data&); - // QGraphicsItem overriden virtual methods QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); @@ -74,6 +71,10 @@ public: void setChecked(bool checked); void setText(const QString &text); +public Q_SLOTS: + // DataVisualization overriden virtual slots + void updated(const Plasma::DataSource::Data &data); + Q_SIGNALS: void clicked();