itom 2.2.0
|
Round LED-style widget with gradient fill. More...
#include <statusLed.h>
Public Slots | |
void | setColorOnEdge (const QColor &color) |
void | setColorOnCenter (const QColor &color) |
void | setColorOffEdge (const QColor &color) |
void | setColorOffCenter (const QColor &color) |
void | setChecked (bool checked) |
Public Member Functions | |
StatusLed (QWidget *parent=0) | |
virtual QSize | sizeHint () const |
virtual QSize | minimumSizeHint () const |
virtual int | heightForWidth (int w) const |
bool | checked () const |
QColor | colorOnEdge () const |
QColor | colorOnCenter () const |
QColor | colorOffEdge () const |
QColor | colorOffCenter () const |
Protected Member Functions | |
virtual void | paintEvent (QPaintEvent *event) |
Protected Attributes | |
QScopedPointer< StatusLedPrivate > | d_ptr |
Properties | |
QColor | colorOnEdge |
QColor | colorOnCenter |
QColor | colorOffEdge |
QColor | colorOffCenter |
bool | checked |
Private Member Functions | |
Q_DECLARE_PRIVATE (StatusLed) | |
Q_DISABLE_COPY (StatusLed) |
Round LED-style widget with gradient fill.
The gradient consists of two colors: led color (main color of the widget) and highlight color at the top-left corner (typically, white).