49 Q_PROPERTY(QColor colorOnEdge READ colorOnEdge WRITE setColorOnEdge);
50 Q_PROPERTY(QColor colorOnCenter READ colorOnCenter WRITE setColorOnCenter);
51 Q_PROPERTY(QColor colorOffEdge READ colorOffEdge WRITE setColorOffEdge);
52 Q_PROPERTY(QColor colorOffCenter READ colorOffCenter WRITE setColorOffCenter);
53 Q_PROPERTY(
bool checked READ checked WRITE setChecked);
60 virtual QSize sizeHint()
const
65 virtual QSize minimumSizeHint()
const
70 virtual int heightForWidth(
int w)
const
76 QColor colorOnEdge()
const;
77 QColor colorOnCenter()
const;
78 QColor colorOffEdge()
const;
79 QColor colorOffCenter()
const;
82 void setColorOnEdge(
const QColor &color);
83 void setColorOnCenter(
const QColor &color);
84 void setColorOffEdge(
const QColor &color);
85 void setColorOffCenter(
const QColor &color);
86 void setChecked(
bool checked);
89 virtual void paintEvent(QPaintEvent *event);
91 QScopedPointer<StatusLedPrivate> d_ptr;