• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/libkopete

Kopete::UI::ListView::BoxComponent

Kopete::UI::ListView::BoxComponent Class Reference

#include <kopetelistviewitem.h>

Inheritance diagram for Kopete::UI::ListView::BoxComponent:

Inheritance graph
[legend]

List of all members.


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)
 ~BoxComponent ()
void layout (const QRect &rect)
virtual int widthForHeight (int height)
virtual int heightForWidth (int width)
virtual int rtti () const

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

enum Kopete::UI::ListView::BoxComponent::Direction

Enumerator:
Horizontal 
Vertical 

Definition at line 236 of file kopetelistviewitem.h.


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::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.

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.

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.

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.

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.


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:
  • kopetelistviewitem.h
  • kopetelistviewitem.cpp

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal