libplasma
Plasma::Flash Class Reference
#include <flash.h>
Inheritance diagram for Plasma::Flash:

Detailed Description
Class that allows to flash text or icons inside plasma.Definition at line 37 of file flash.h.
Public Slots | |
| void | kill () |
Public Member Functions | |
| Flash (QGraphicsItem *parent=0) | |
| virtual | ~Flash () |
| void | paintWidget (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| QRectF | boundingRect () const |
| void | setFont (const QFont &) |
| void | setColor (const QColor &) |
| void | setDuration (int duration) |
| void | flash (const QString &text, int duration=0, const QTextOption &option=QTextOption(Qt::AlignCenter)) |
| void | flash (const QPixmap &pixmap, int duration=0, Qt::Alignment align=Qt::AlignCenter) |
Protected Slots | |
| void | fadeIn () |
| void | fadeOut () |
Protected Member Functions | |
| QPixmap | renderPixmap () |
Constructor & Destructor Documentation
| Flash::Flash | ( | QGraphicsItem * | parent = 0 |
) |
Member Function Documentation
| void Flash::paintWidget | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) | [virtual] |
| QRectF Flash::boundingRect | ( | ) | const [virtual] |
Set the font for this widget.
- Parameters:
-
font the new font
- Returns:
- the bounding rectangle for this Plasma::Widget
Reimplemented from Plasma::Widget.
| void Flash::flash | ( | const QString & | text, | |
| int | duration = 0, |
|||
| const QTextOption & | option = QTextOption(Qt::AlignCenter) | |||
| ) |
| void Flash::flash | ( | const QPixmap & | pixmap, | |
| int | duration = 0, |
|||
| Qt::Alignment | align = Qt::AlignCenter | |||
| ) |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference