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

Detailed Description
Simple Text Label.This class is a simple text label, it just draws plain text.
Definition at line 40 of file label.h.
Public Member Functions | |
| Label (Widget *parent) | |
| virtual | ~Label () |
| Qt::Orientations | expandingDirections () const |
| bool | hasHeightForWidth () const |
| qreal | heightForWidth (qreal w) const |
| QSizeF | sizeHint () const |
| void | setText (const QString &text) |
| QString | text () const |
| void | setAlignment (Qt::Alignment align) |
| Qt::Alignment | alignment () const |
| void | setPen (const QPen &pen) |
| QPen | pen () const |
| void | setMaximumWidth (int width) |
| int | maximumWidth () const |
| void | setFont (const QFont &font) |
| QFont | font () const |
| void | paintWidget (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
Properties | |
| QString | text |
| Qt::Alignment | alignment |
| QPen | pen |
| int | maximumWidth |
Constructor & Destructor Documentation
Member Function Documentation
| Qt::Orientations Plasma::Label::expandingDirections | ( | ) | const [virtual] |
| bool Plasma::Label::hasHeightForWidth | ( | ) | const [virtual] |
| qreal Plasma::Label::heightForWidth | ( | qreal | w | ) | const [virtual] |
| QSizeF Plasma::Label::sizeHint | ( | ) | const [virtual] |
| void Plasma::Label::setText | ( | const QString & | text | ) |
| QString Plasma::Label::text | ( | ) | const |
Returns the displayed text.
| void Plasma::Label::setAlignment | ( | Qt::Alignment | align | ) |
| Qt::Alignment Plasma::Label::alignment | ( | ) | const |
Returns the alignment of the displayed text.
| void Plasma::Label::setPen | ( | const QPen & | pen | ) |
| QPen Plasma::Label::pen | ( | ) | const |
Returns the pen used to paint the text.
| void Plasma::Label::setMaximumWidth | ( | int | width | ) |
| int Plasma::Label::maximumWidth | ( | ) | const |
The width in pixels that this label is constrained to.
| void Plasma::Label::setFont | ( | const QFont & | font | ) |
| QFont Plasma::Label::font | ( | ) | const |
| void Plasma::Label::paintWidget | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget | |||
| ) | [virtual] |
Property Documentation
The documentation for this class was generated from the following files:
KDE 4.0 API Reference