libplasma
Plasma::Label Class Reference
#include <label.h>
Inheritance diagram for Plasma::Label:

Detailed Description
Definition at line 36 of file label.h.
Public Slots | |
| void | dataUpdated (const QString &sourceName, const Plasma::DataEngine::Data &data) |
Public Member Functions | |
| QString | image () const |
| Label (QGraphicsWidget *parent=0) | |
| QLabel * | nativeWidget () const |
| void | setImage (const QString &path) |
| void | setStyleSheet (const QString &stylesheet) |
| void | setText (const QString &text) |
| QString | styleSheet () |
| QString | text () const |
| ~Label () | |
Protected Member Functions | |
| void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Properties | |
| QString | image |
| QLabel | nativeWidget |
| QGraphicsWidget | parentWidget |
| QString | styleSheet |
| QString | text |
Constructor & Destructor Documentation
| Plasma::Label::Label | ( | QGraphicsWidget * | parent = 0 |
) | [explicit] |
Member Function Documentation
| void Plasma::Label::dataUpdated | ( | const QString & | sourceName, | |
| const Plasma::DataEngine::Data & | data | |||
| ) | [slot] |
| QString Plasma::Label::image | ( | ) | const |
- Returns:
- the image path being displayed currently, or an empty string if none.
| void Plasma::Label::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
| void Plasma::Label::setImage | ( | const QString & | path | ) |
| void Plasma::Label::setStyleSheet | ( | const QString & | stylesheet | ) |
| void Plasma::Label::setText | ( | const QString & | text | ) |
| QString Plasma::Label::styleSheet | ( | ) |
- Returns:
- the stylesheet currently used with this widget
| QString Plasma::Label::text | ( | ) | const |
- Returns:
- the display text
Property Documentation
QGraphicsWidget Plasma::Label::parentWidget [read] |
The documentation for this class was generated from the following files:
KDE 4.1 API Reference