itom  4.1.0
StatusLed Class Reference

Round LED-style widget with gradient fill. More...

#include <statusLed.h>

Inheritance diagram for StatusLed:

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< StatusLedPrivated_ptr
 

Properties

QColor colorOnEdge
 
QColor colorOnCenter
 
QColor colorOffEdge
 
QColor colorOffCenter
 
bool checked
 

Private Member Functions

 Q_DECLARE_PRIVATE (StatusLed)
 
 Q_DISABLE_COPY (StatusLed)
 

Detailed Description

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).


The documentation for this class was generated from the following files: