The comment block should be just before the class definition, not the

namespace. Remove unneeded checks.

svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666633
This commit is contained in:
Rafael Fernández López 2007-05-20 13:29:06 +00:00
parent 623639b8c9
commit 03f0b9d130
2 changed files with 6 additions and 6 deletions

View File

@ -88,8 +88,8 @@ void RadioButton::paint(QPainter *painter, const QStyleOptionGraphicsItem *optio
radioButtonOption.text = d->text; radioButtonOption.text = d->text;
radioButtonOption.state = option->state; radioButtonOption.state = option->state;
radioButtonOption.state |= d->checked ? QStyle::State_On : QStyle::State_Off; radioButtonOption.state |= d->checked ? QStyle::State_On : QStyle::State_Off;
radioButtonOption.state |= d->mouseOver && isEnabled() ? QStyle::State_MouseOver : QStyle::State_None; radioButtonOption.state |= d->mouseOver ? QStyle::State_MouseOver : QStyle::State_None;
radioButtonOption.state |= d->mouseDown && isEnabled() ? QStyle::State_Sunken : QStyle::State_Raised; radioButtonOption.state |= d->mouseDown ? QStyle::State_Sunken : QStyle::State_Raised;
style->drawControl(QStyle::CE_RadioButton, &radioButtonOption, painter, widget); style->drawControl(QStyle::CE_RadioButton, &radioButtonOption, painter, widget);
} }

View File

@ -30,6 +30,10 @@
#include "datavisualization.h" #include "datavisualization.h"
namespace Plasma
{
/** /**
* This class emulates a QRadioButton. * This class emulates a QRadioButton.
* *
@ -46,10 +50,6 @@
*/ */
namespace Plasma
{
class KDE_EXPORT RadioButton : public DataVisualization class KDE_EXPORT RadioButton : public DataVisualization
, public QGraphicsItem , public QGraphicsItem
{ {