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

#include <kopetelistviewitem.h>

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

Public Member Functions

 TextComponent (ComponentBase *parent, const QFont &font=QFont(), const QString &text=QString())
 
 ~TextComponent ()
 
QColor color ()
 
QFont font ()
 
void paint (QPainter *painter, const QPalette &pal)
 
virtual int rtti () const
 
void setColor (const QColor &color)
 
void setDefaultColor ()
 
void setFont (const QFont &font)
 
void setText (const QString &text)
 
QString text ()
 
int widthForHeight (int)
 
- 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 ()
 
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_TextComponent
 
- Static Public Attributes inherited from Kopete::UI::ListView::Component
static int RTTI = Rtti_Component
 

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
}
 
- 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

Definition at line 260 of file kopetelistviewitem.h.

Constructor & Destructor Documentation

Kopete::UI::ListView::TextComponent::TextComponent ( ComponentBase *  parent,
const QFont &  font = QFont(),
const QString &  text = QString() 
)
explicit

Definition at line 538 of file kopetelistviewitem.cpp.

Kopete::UI::ListView::TextComponent::~TextComponent ( )

Definition at line 547 of file kopetelistviewitem.cpp.

Member Function Documentation

QColor Kopete::UI::ListView::TextComponent::color ( )

Definition at line 598 of file kopetelistviewitem.cpp.

QFont Kopete::UI::ListView::TextComponent::font ( )

Definition at line 565 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::TextComponent::paint ( QPainter *  painter,
const QPalette &  pal 
)
virtual

Paint this item, inside the rectangle returned by rect().

The default implementation calls paint on all children.

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

Definition at line 616 of file kopetelistviewitem.cpp.

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

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

Definition at line 281 of file kopetelistviewitem.h.

void Kopete::UI::ListView::TextComponent::setColor ( const QColor &  color)

Definition at line 603 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::TextComponent::setDefaultColor ( )

Definition at line 610 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::TextComponent::setFont ( const QFont &  font)

Definition at line 570 of file kopetelistviewitem.cpp.

void Kopete::UI::ListView::TextComponent::setText ( const QString &  text)

Definition at line 557 of file kopetelistviewitem.cpp.

QString Kopete::UI::ListView::TextComponent::text ( )

Definition at line 552 of file kopetelistviewitem.cpp.

int Kopete::UI::ListView::TextComponent::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 589 of file kopetelistviewitem.cpp.

Member Data Documentation

int Kopete::UI::ListView::TextComponent::RTTI = Rtti_TextComponent
static

Definition at line 280 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-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.

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