kopete/libkopete
Kopete::UI::ListView::TextComponent Class Reference
#include <kopetelistviewitem.h>

Detailed Description
Definition at line 260 of file kopetelistviewitem.h.
Public Member Functions | |
| TextComponent (ComponentBase *parent, const QFont &font=QFont(), const QString &text=QString()) | |
| ~TextComponent () | |
| QString | text () |
| void | setText (const QString &text) |
| QFont | font () |
| void | setFont (const QFont &font) |
| QColor | color () |
| void | setColor (const QColor &color) |
| void | setDefaultColor () |
| int | widthForHeight (int) |
| void | paint (QPainter *painter, const QPalette &pal) |
| virtual int | rtti () const |
Static Public Attributes | |
| static int | RTTI = Rtti_TextComponent |
Constructor & Destructor Documentation
| Kopete::UI::ListView::TextComponent::TextComponent | ( | ComponentBase * | parent, | |
| const QFont & | font = QFont(), |
|||
| const QString & | text = QString() | |||
| ) | [explicit] |
Definition at line 540 of file kopetelistviewitem.cpp.
| Kopete::UI::ListView::TextComponent::~TextComponent | ( | ) |
Definition at line 549 of file kopetelistviewitem.cpp.
Member Function Documentation
| QString Kopete::UI::ListView::TextComponent::text | ( | ) |
Definition at line 554 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::TextComponent::setText | ( | const QString & | text | ) |
Definition at line 559 of file kopetelistviewitem.cpp.
| QFont Kopete::UI::ListView::TextComponent::font | ( | ) |
Definition at line 567 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::TextComponent::setFont | ( | const QFont & | font | ) |
Definition at line 572 of file kopetelistviewitem.cpp.
| QColor Kopete::UI::ListView::TextComponent::color | ( | ) |
Definition at line 600 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::TextComponent::setColor | ( | const QColor & | color | ) |
Definition at line 605 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::TextComponent::setDefaultColor | ( | ) |
Definition at line 612 of file kopetelistviewitem.cpp.
| int Kopete::UI::ListView::TextComponent::widthForHeight | ( | int | height | ) | [virtual] |
Returns the width this component desires for a given height.
By default this function returns minWidth().
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 591 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::TextComponent::paint | ( | QPainter * | painter, | |
| const QPalette & | pal | |||
| ) | [virtual] |
Paint this item, inside the rectangle returned by rect().
The default implementation calls paint on all children.
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 618 of file kopetelistviewitem.cpp.
| virtual int Kopete::UI::ListView::TextComponent::rtti | ( | ) | const [inline, virtual] |
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 281 of file kopetelistviewitem.h.
Member Data Documentation
int Kopete::UI::ListView::TextComponent::RTTI = Rtti_TextComponent [static] |
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 280 of file kopetelistviewitem.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference