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

kopete/kopete

Public Slots | Public Member Functions | Protected Member Functions | List of all members
TokenWithLayout Class Reference

#include <TokenWithLayout.h>

Inheritance diagram for TokenWithLayout:
Inheritance graph
[legend]

Public Slots

void setAlignCenter (bool)
 
void setAlignLeft (bool)
 
void setAlignRight (bool)
 
void setBold (bool bold)
 
void setItalic (bool italic)
 
void setPrefix (const QString &)
 
void setSuffix (const QString &)
 
void setWidth (int width)
 
void setWidthForced (bool)
 

Public Member Functions

 TokenWithLayout (const QString &text, const QString &iconName, int value, QWidget *parent=0)
 
 ~TokenWithLayout ()
 
Qt::Alignment alignment ()
 
bool bold () const
 
bool italic () const
 
QString prefix () const
 
void setAlignment (Qt::Alignment alignment)
 
qreal size () const
 
QString suffix () const
 
qreal width () const
 
bool widthForced () const
 
- Public Member Functions inherited from Token
 Token (const QString &text, const QString &iconName, int value, QWidget *parent=0)
 
KIcon icon () const
 
QString iconName () const
 
QString name () const
 
int value () const
 

Protected Member Functions

virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void fillMenu (QMenu *menu)
 
virtual void menuExecuted (const QAction *action)
 
- Protected Member Functions inherited from Token
virtual void paintEvent (QPaintEvent *pe)
 

Additional Inherited Members

- Signals inherited from Token
void changed ()
 
- Protected Attributes inherited from Token
KIcon m_icon
 
QLabel * m_iconContainer
 
QString m_iconName
 
QLabel * m_label
 
QString m_name
 
int m_value
 

Detailed Description

An extended Token with controls for layouting the token and getting layout values for use outside the Token.

Author
Nikolaj Hald Nielsen nhnFr.nosp@m.eesp.nosp@m.irit@.nosp@m.gmai.nosp@m.l.com

Definition at line 38 of file TokenWithLayout.h.

Constructor & Destructor Documentation

TokenWithLayout::TokenWithLayout ( const QString &  text,
const QString &  iconName,
int  value,
QWidget *  parent = 0 
)

Definition at line 47 of file TokenWithLayout.cpp.

TokenWithLayout::~TokenWithLayout ( )

Definition at line 59 of file TokenWithLayout.cpp.

Member Function Documentation

Qt::Alignment TokenWithLayout::alignment ( )

Definition at line 181 of file TokenWithLayout.cpp.

bool TokenWithLayout::bold ( ) const

Definition at line 214 of file TokenWithLayout.cpp.

void TokenWithLayout::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Definition at line 166 of file TokenWithLayout.cpp.

void TokenWithLayout::fillMenu ( QMenu *  menu)
protectedvirtual

Reimplemented in ContactListToken.

Definition at line 63 of file TokenWithLayout.cpp.

bool TokenWithLayout::italic ( ) const

Definition at line 268 of file TokenWithLayout.cpp.

void TokenWithLayout::menuExecuted ( const QAction *  action)
protectedvirtual

Reimplemented in ContactListToken.

Definition at line 152 of file TokenWithLayout.cpp.

QString TokenWithLayout::prefix ( ) const
inline

Definition at line 53 of file TokenWithLayout.h.

void TokenWithLayout::setAlignCenter ( bool  b)
slot

Definition at line 202 of file TokenWithLayout.cpp.

void TokenWithLayout::setAlignLeft ( bool  b)
slot

Definition at line 196 of file TokenWithLayout.cpp.

void TokenWithLayout::setAlignment ( Qt::Alignment  alignment)

Definition at line 186 of file TokenWithLayout.cpp.

void TokenWithLayout::setAlignRight ( bool  b)
slot

Definition at line 208 of file TokenWithLayout.cpp.

void TokenWithLayout::setBold ( bool  bold)
slot

Definition at line 219 of file TokenWithLayout.cpp.

void TokenWithLayout::setItalic ( bool  italic)
slot

Definition at line 273 of file TokenWithLayout.cpp.

void TokenWithLayout::setPrefix ( const QString &  string)
slot

Definition at line 231 of file TokenWithLayout.cpp.

void TokenWithLayout::setSuffix ( const QString &  string)
slot

Definition at line 240 of file TokenWithLayout.cpp.

void TokenWithLayout::setWidth ( int  width)
slot

Definition at line 249 of file TokenWithLayout.cpp.

void TokenWithLayout::setWidthForced ( bool  on)
slot

Definition at line 258 of file TokenWithLayout.cpp.

qreal TokenWithLayout::size ( ) const
inline

Definition at line 50 of file TokenWithLayout.h.

QString TokenWithLayout::suffix ( ) const
inline

Definition at line 54 of file TokenWithLayout.h.

qreal TokenWithLayout::width ( ) const

Definition at line 263 of file TokenWithLayout.cpp.

bool TokenWithLayout::widthForced ( ) const
inline

Definition at line 52 of file TokenWithLayout.h.


The documentation for this class was generated from the following files:
  • TokenWithLayout.h
  • TokenWithLayout.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • 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