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

Detailed Description
Definition at line 233 of file kopetelistviewitem.h.
Public Types | |
| enum | Direction { Horizontal, Vertical } |
Public Member Functions | |
| BoxComponent (ComponentBase *parent, Direction dir=Horizontal) | |
| virtual int | heightForWidth (int width) |
| void | layout (const QRect &rect) |
| virtual int | rtti () const |
| virtual int | widthForHeight (int height) |
| ~BoxComponent () | |
Static Public Attributes | |
| static int | RTTI = Rtti_BoxComponent |
Protected Member Functions | |
| void | componentAdded (Component *component) |
| void | componentRemoved (Component *component) |
| void | componentResized (Component *component) |
Member Enumeration Documentation
Constructor & Destructor Documentation
| Kopete::UI::ListView::BoxComponent::BoxComponent | ( | ComponentBase * | parent, | |
| Direction | dir = Horizontal | |||
| ) | [explicit] |
Definition at line 293 of file kopetelistviewitem.cpp.
| Kopete::UI::ListView::BoxComponent::~BoxComponent | ( | ) |
Definition at line 300 of file kopetelistviewitem.cpp.
Member Function Documentation
| void Kopete::UI::ListView::BoxComponent::componentAdded | ( | Component * | component | ) | [protected, virtual] |
A child item has been added to this item.
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 440 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::BoxComponent::componentRemoved | ( | Component * | component | ) | [protected, virtual] |
A child item has been removed from this item.
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 446 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::BoxComponent::componentResized | ( | Component * | component | ) | [protected, virtual] |
A child item has been resized.
Reimplemented from Kopete::UI::ListView::ComponentBase.
Definition at line 452 of file kopetelistviewitem.cpp.
| int Kopete::UI::ListView::BoxComponent::heightForWidth | ( | int | width | ) | [virtual] |
Returns the height this component desires for a given width.
By default this function returns minHeight().
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 323 of file kopetelistviewitem.cpp.
| void Kopete::UI::ListView::BoxComponent::layout | ( | const QRect & | rect | ) | [virtual] |
Set the size and position of this item relative to the list view item.
Should only be called by the containing item.
- Parameters:
-
rect the new rectangle this component will paint in, relative to the painter passed to the paint() function by the parent item.
Reimplemented from Kopete::UI::ListView::Component.
Reimplemented in Kopete::UI::ListView::DisplayNameComponent.
Definition at line 377 of file kopetelistviewitem.cpp.
| virtual int Kopete::UI::ListView::BoxComponent::rtti | ( | ) | const [inline, virtual] |
Reimplemented from Kopete::UI::ListView::Component.
Reimplemented in Kopete::UI::ListView::DisplayNameComponent.
Definition at line 246 of file kopetelistviewitem.h.
| int Kopete::UI::ListView::BoxComponent::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 305 of file kopetelistviewitem.cpp.
Member Data Documentation
int Kopete::UI::ListView::BoxComponent::RTTI = Rtti_BoxComponent [static] |
Reimplemented from Kopete::UI::ListView::Component.
Reimplemented in Kopete::UI::ListView::DisplayNameComponent.
Definition at line 245 of file kopetelistviewitem.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference