• 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
  • ContactComponent
Public Member Functions | Protected Attributes | List of all members
Kopete::UI::ListView::ContactComponent Class Reference

#include <kopetelistviewitem.h>

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

Public Member Functions

 ContactComponent (ComponentBase *parent, Kopete::Contact *contact, int iconSize)
 
 ~ContactComponent ()
 
Kopete::Contact * contact ()
 
std::pair< QString, QRect > toolTip (const QPoint &relativePos)
 
void updatePixmap ()
 
- Public Member Functions inherited from Kopete::UI::ListView::ImageComponent
 ImageComponent (ComponentBase *parent)
 
 ImageComponent (ComponentBase *parent, int minW, int minH)
 
 ~ImageComponent ()
 
void paint (QPainter *painter, const QPalette &pal)
 
QPixmap pixmap (void)
 
virtual int rtti () const
 
void scale (int w, int h, Qt::AspectRatioMode)
 
void setPixmap (const QPixmap &img, bool adjustSize=true)
 
- Public Member Functions inherited from Kopete::UI::ListView::Component
virtual ~Component ()=0
 
virtual int heightForWidth (int width)
 
void hide ()
 
bool isHidden ()
 
bool isShown ()
 
virtual void layout (const QRect &rect)
 
int minHeight ()
 
int minWidth ()
 
QRect rect ()
 
void relayout ()
 
void repaint ()
 
void setToolTipSource (ToolTipSource *source=0)
 
void show ()
 
virtual int widthForHeight (int height)
 
- Public Member Functions inherited from Kopete::UI::ListView::ComponentBase
 ComponentBase ()
 
virtual ~ComponentBase ()=0
 
Component * component (uint n)
 
Component * componentAt (const QPoint &pt)
 
uint components ()
 

Protected Attributes

Private *const d
 

Additional Inherited Members

- Public Types inherited from Kopete::UI::ListView::Component
enum  RttiValues {
  Rtti_Component, Rtti_BoxComponent, Rtti_TextComponent, Rtti_ImageComponent,
  Rtti_DisplayNameComponent, Rtti_HSpacerComponent, Rtti_VSpacerComponent
}
 
- Static Public Attributes inherited from Kopete::UI::ListView::ImageComponent
static int RTTI = Rtti_ImageComponent
 
- Static Public Attributes inherited from Kopete::UI::ListView::Component
static int RTTI = Rtti_Component
 
- Protected Member Functions inherited from Kopete::UI::ListView::Component
 Component (ComponentBase *parent)
 
void componentAdded (Component *component)
 
void componentRemoved (Component *component)
 
bool setMinHeight (int height)
 
bool setMinWidth (int width)
 
- Protected Member Functions inherited from Kopete::UI::ListView::ComponentBase
virtual void clear ()
 
virtual void componentResized (Component *component)
 
void updateAnimationPosition (int p, int s)
 

Detailed Description

ContactComponent.

Definition at line 313 of file kopetelistviewitem.h.

Constructor & Destructor Documentation

Kopete::UI::ListView::ContactComponent::ContactComponent ( ComponentBase *  parent,
Kopete::Contact *  contact,
int  iconSize 
)

Definition at line 812 of file kopetelistviewitem.cpp.

Kopete::UI::ListView::ContactComponent::~ContactComponent ( )

Definition at line 819 of file kopetelistviewitem.cpp.

Member Function Documentation

Kopete::Contact * Kopete::UI::ListView::ContactComponent::contact ( )

Definition at line 828 of file kopetelistviewitem.cpp.

std::pair< QString, QRect > Kopete::UI::ListView::ContactComponent::toolTip ( const QPoint &  relativePos)
virtual

Get the tool tip string and rectangle for a tip request at position relativePos relative to this item.

If a tooltip source is set, it will be used. Otherwise calls the base class.

Returns
a pair where the first element is the tooltip, and the second is the rectangle within the item for which the tip should be displayed.

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

Definition at line 834 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::ContactComponent::updatePixmap ( )

Definition at line 824 of file kopetelistviewitem.cpp.

Member Data Documentation

Private* const Kopete::UI::ListView::ContactComponent::d
protected

Definition at line 322 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