KMyMoneyCheckListItem Class Reference

#include <kmymoneychecklistitem.h>

Inheritance diagram for KMyMoneyCheckListItem:

QObject QCheckListItem
Collaboration diagram for KMyMoneyCheckListItem:

Collaboration graph
[legend]

List of all members.

Signals

void stateChanged (bool)

Public Member Functions

 KMyMoneyCheckListItem (QListView *parent, const QString &txt, const QString &key, const QString &id, Type type=QCheckListItem::CheckBox)
 KMyMoneyCheckListItem (QListView *parent, QListViewItem *after, const QString &txt, const QString &key, const QString &id, Type type=QCheckListItem::CheckBox)
 KMyMoneyCheckListItem (QListViewItem *parent, const QString &txt, const QString &key, const QString &id, Type type=QCheckListItem::CheckBox)
 ~KMyMoneyCheckListItem ()
const QString & id (void) const
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
const QColor backgroundColor ()
bool isAlternate (void)
QString key (int column, bool ascending) const

Protected Member Functions

virtual void stateChange (bool)

Private Attributes

QString m_key
QString m_id
unsigned int m_isOdd: 1
unsigned int m_isKnown: 1
unsigned int m_unused: 30

Friends

class KMyMoneyListViewItem


Detailed Description

This class implements a derived version of a QCheckListItem that allows the storage of an engine object id with the object and emits a signal upon state change.

Author:
Thomas Baumgart

Constructor & Destructor Documentation

KMyMoneyCheckListItem::KMyMoneyCheckListItem ( QListView *  parent,
const QString &  txt,
const QString &  key,
const QString &  id,
Type  type = QCheckListItem::CheckBox 
)

KMyMoneyCheckListItem::KMyMoneyCheckListItem ( QListView *  parent,
QListViewItem after,
const QString &  txt,
const QString &  key,
const QString &  id,
Type  type = QCheckListItem::CheckBox 
)

KMyMoneyCheckListItem::KMyMoneyCheckListItem ( QListViewItem parent,
const QString &  txt,
const QString &  key,
const QString &  id,
Type  type = QCheckListItem::CheckBox 
)

KMyMoneyCheckListItem::~KMyMoneyCheckListItem (  ) 


Member Function Documentation

const QString& KMyMoneyCheckListItem::id ( void   )  const [inline]

void KMyMoneyCheckListItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  alignment 
)

use my own paint method

const QColor KMyMoneyCheckListItem::backgroundColor (  ) 

use my own backgroundColor method

bool KMyMoneyCheckListItem::isAlternate ( void   ) 

see KListViewItem::isAlternate()

QString KMyMoneyCheckListItem::key ( int  column,
bool  ascending 
) const

This method returns a const reference to the key passed to the constructor. The column defines what is returned: For column equals 0, the first character passed as key to the constructor concatenated with the value returned by text(0) is returned. For column equals to 1, the key as passed to the constructor except the first character is returned.

void KMyMoneyCheckListItem::stateChanged ( bool   )  [signal]

virtual void KMyMoneyCheckListItem::stateChange ( bool   )  [protected, virtual]


Friends And Related Function Documentation

friend class KMyMoneyListViewItem [friend]


Member Data Documentation

QString KMyMoneyCheckListItem::m_key [private]

QString KMyMoneyCheckListItem::m_id [private]

unsigned int KMyMoneyCheckListItem::m_isOdd [private]

unsigned int KMyMoneyCheckListItem::m_isKnown [private]

unsigned int KMyMoneyCheckListItem::m_unused [private]


The documentation for this class was generated from the following file:

Generated on Wed Jan 26 13:07:57 2011 for KMyMoney by  doxygen 1.5.6