class KLed

An LED widget. More...

Definition#include <kled.h>
InheritsQWidget (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Slots

Protected Methods


Detailed Description

Display a round or rectangular light emitting diode.

It is configurable to five colors, the two on/off states and three styles (or "looks");

It may display itself in a performant flat view, a round view with light spot or a round view sunken in the screen.

void  toggle ()

[slot]

Toggle the state of the led from Off to On or vice versa.

The widget repaints itself immediately.

void  on ()

[slot]

Sets the state of the widget to On.

The widget will be painted immediately.

See also: off(), toggle(), toggleState(), setState()

void  off ()

[slot]

Sets the state of the widget to Off.

The widget will be painted immediately.

See also: on(), toggle(), toggleState(), setState()

void  paintFlat ()

[protected virtual]

Paints a circular, flat LED.

void  paintRound ()

[protected virtual]

Paints a circular, raised LED.

void  paintSunken ()

[protected virtual]

Paints a circular, sunken LED.

void  paintRect ()

[protected virtual]

Paints a rectangular, flat LED.

void  paintRectFrame (bool raised)

[protected virtual]

Paints a rectangular LED, either raised or sunken, depending on its argument.

void  paintEvent ( QPaintEvent * )

[protected]

@reimplemented

Reimplemented from QWidget