#include <kmymoneychecklistitem.h>
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 |
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 | ( | ) |
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] |
friend class KMyMoneyListViewItem [friend] |
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] |