Module implementing a LED widget.
It was inspired by KLed.
E5LedCircular |
E5LedRectangular |
E5ClickableLed | Class implementing a clickable LED widget. |
E5Led | Class implementing a LED widget. |
None |
Class implementing a clickable LED widget.
None |
None |
E5ClickableLed | Constructor |
mouseReleaseEvent | Protected method handling mouse release events. |
None |
Constructor
Protected method handling mouse release events.
Class implementing a LED widget.
None |
None |
E5Led | Constructor |
__getBestRoundSize | Private method to calculate the width of the LED. |
__paintRectangular | Private method to paint a rectangular raised LED. |
__paintRound | Private method to paint a round raised LED. |
color | Public method to return the LED color. |
darkFactor | Public method to return the dark factor. |
isFramed | Public method to return the framed state. |
isOn | Public method to return the LED state. |
minimumSizeHint | Public method to give a hint about our minimum size. |
off | Public slot to set the LED to off. |
on | Public slot to set the LED to on. |
paintEvent | Protected slot handling the paint event. |
ratio | Public method to return the LED rectangular ratio [= width / height]. |
setColor | Public method to set the LED color. |
setDarkFactor | Public method to set the dark factor. |
setFramed | Public slot to set the __framedLed attribute. |
setOn | Public method to set the LED to on. |
setRatio | Public method to set the LED rectangular ratio (width / height). |
setShape | Public method to set the LED shape. |
shape | Public method to return the LED shape. |
sizeHint | Public method to give a hint about our desired size. |
toggle | Public slot to toggle the LED state. |
None |
Constructor
Private method to calculate the width of the LED.
Private method to paint a rectangular raised LED.
Private method to paint a round raised LED.
Public method to return the LED color.
Public method to return the dark factor.
Public method to return the framed state.
Public method to return the LED state.
Public method to give a hint about our minimum size.
Public slot to set the LED to off.
Public slot to set the LED to on.
Protected slot handling the paint event.
Public method to return the LED rectangular ratio [= width / height].
Public method to set the LED color.
Public method to set the dark factor.
Public slot to set the __framedLed attribute.
Public method to set the LED to on.
Public method to set the LED rectangular ratio (width / height).
Public method to set the LED shape.
Public method to return the LED shape.
Public method to give a hint about our desired size.
Public slot to toggle the LED state.