kopete/libkopete
#include <kopetelistviewitem.h>
Public Types | |
enum | Direction { Horizontal, Vertical } |
Public Types inherited from Kopete::UI::ListView::Component | |
enum | RttiValues { Rtti_Component, Rtti_BoxComponent, Rtti_TextComponent, Rtti_ImageComponent, Rtti_DisplayNameComponent, Rtti_HSpacerComponent, Rtti_VSpacerComponent } |
Public Member Functions | |
BoxComponent (ComponentBase *parent, Direction dir=Horizontal) | |
~BoxComponent () | |
virtual int | heightForWidth (int width) |
void | layout (const QRect &rect) |
virtual int | rtti () const |
virtual int | widthForHeight (int height) |
Public Member Functions inherited from Kopete::UI::ListView::Component | |
virtual | ~Component ()=0 |
void | hide () |
bool | isHidden () |
bool | isShown () |
int | minHeight () |
int | minWidth () |
virtual void | paint (QPainter *painter, const QPalette &pal) |
QRect | rect () |
void | relayout () |
void | repaint () |
void | setToolTipSource (ToolTipSource *source=0) |
void | show () |
std::pair< QString, QRect > | toolTip (const QPoint &relativePos) |
Public Member Functions inherited from Kopete::UI::ListView::ComponentBase | |
ComponentBase () | |
virtual | ~ComponentBase ()=0 |
Component * | component (uint n) |
Component * | componentAt (const QPoint &pt) |
uint | components () |
Static Public Attributes | |
static int | RTTI = Rtti_BoxComponent |
Static Public Attributes inherited from Kopete::UI::ListView::Component | |
static int | RTTI = Rtti_Component |
Protected Member Functions | |
void | componentAdded (Component *component) |
void | componentRemoved (Component *component) |
void | componentResized (Component *component) |
Protected Member Functions inherited from Kopete::UI::ListView::Component | |
Component (ComponentBase *parent) | |
bool | setMinHeight (int height) |
bool | setMinWidth (int width) |
Protected Member Functions inherited from Kopete::UI::ListView::ComponentBase | |
virtual void | clear () |
void | updateAnimationPosition (int p, int s) |
Detailed Description
Definition at line 233 of file kopetelistviewitem.h.
Member Enumeration Documentation
Enumerator | |
---|---|
Horizontal | |
Vertical |
Definition at line 236 of file kopetelistviewitem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 291 of file kopetelistviewitem.cpp.
Kopete::UI::ListView::BoxComponent::~BoxComponent | ( | ) |
Definition at line 298 of file kopetelistviewitem.cpp.
Member Function Documentation
|
protectedvirtual |
A child item has been added to this item.
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 438 of file kopetelistviewitem.cpp.
|
protectedvirtual |
A child item has been removed from this item.
Reimplemented from Kopete::UI::ListView::Component.
Definition at line 444 of file kopetelistviewitem.cpp.
|
protectedvirtual |
A child item has been resized.
Reimplemented from Kopete::UI::ListView::ComponentBase.
Definition at line 450 of file kopetelistviewitem.cpp.
|
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 321 of file kopetelistviewitem.cpp.
|
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 375 of file kopetelistviewitem.cpp.
|
inlinevirtual |
Reimplemented from Kopete::UI::ListView::Component.
Reimplemented in Kopete::UI::ListView::DisplayNameComponent.
Definition at line 246 of file kopetelistviewitem.h.
|
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 303 of file kopetelistviewitem.cpp.
Member Data Documentation
|
static |
Definition at line 245 of file kopetelistviewitem.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.