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

kopete/libkopete

  • Kopete
  • UI
  • ListView
  • BoxComponent
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Kopete::UI::ListView::BoxComponent Class Reference

#include <kopetelistviewitem.h>

Inheritance diagram for Kopete::UI::ListView::BoxComponent:
Inheritance graph
[legend]

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

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 291 of file kopetelistviewitem.cpp.

Kopete::UI::ListView::BoxComponent::~BoxComponent ( )

Definition at line 298 of file kopetelistviewitem.cpp.

Member Function Documentation

void Kopete::UI::ListView::BoxComponent::componentAdded ( Component *  component)
protectedvirtual

A child item has been added to this item.

Reimplemented from Kopete::UI::ListView::Component.

Definition at line 438 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::BoxComponent::componentRemoved ( Component *  component)
protectedvirtual

A child item has been removed from this item.

Reimplemented from Kopete::UI::ListView::Component.

Definition at line 444 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::BoxComponent::componentResized ( Component *  component)
protectedvirtual

A child item has been resized.

Reimplemented from Kopete::UI::ListView::ComponentBase.

Definition at line 450 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 321 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
rectthe 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.

virtual int Kopete::UI::ListView::BoxComponent::rtti ( ) const
inlinevirtual

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 303 of file kopetelistviewitem.cpp.

Member Data Documentation

int Kopete::UI::ListView::BoxComponent::RTTI = Rtti_BoxComponent
static

Definition at line 245 of file kopetelistviewitem.h.


The documentation for this class was generated from the following files:
  • kopetelistviewitem.h
  • kopetelistviewitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal