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:
parent
623639b8c9
commit
03f0b9d130
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user