#include <kscheduledlistitem.h>
Public Member Functions | |
KScheduledListItem (KListView *parent, const QString &description, const QPixmap &pixmap=QPixmap(), const QString &sortKey=QString()) | |
KScheduledListItem (KScheduledListItem *parent, const MyMoneySchedule &schedule) | |
~KScheduledListItem () | |
const QString & | scheduleId (void) const |
int | compare (QListViewItem *i, int col, bool ascending) const |
Protected Member Functions | |
void | paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align) |
Private Attributes | |
MyMoneySchedule | m_schedule |
QString | m_sortKey |
MyMoneyMoney | m_amount |
KScheduledListItem::KScheduledListItem | ( | KListView * | parent, | |
const QString & | description, | |||
const QPixmap & | pixmap = QPixmap() , |
|||
const QString & | sortKey = QString() | |||
) |
This constructor is used to create a child of the main list view widget.
The child should be a descriptor for the schedule type and one of Bill, Deposit or Transfer.
Other types may be added in the future.
parent | The list view to be a child of. | |
description | The (translated) description. | |
pixmap | A pixmap for the entry | |
sortKey | a sortkey, if empty, description will be used. |
KScheduledListItem::KScheduledListItem | ( | KScheduledListItem * | parent, | |
const MyMoneySchedule & | schedule | |||
) |
This constructor is used to create a child of one of the children created by the above method.
This child describes a schedule and represents the data in schedule.
parent | The list view item to be a child of. | |
schedule | The schedule to be represented. |
KScheduledListItem::~KScheduledListItem | ( | ) |
Standard destructor.
const QString& KScheduledListItem::scheduleId | ( | void | ) | const [inline] |
Returns the schedule id for the instance being represented. To be used selection slots by the view.
Returns an empty string for the top level items.
int KScheduledListItem::compare | ( | QListViewItem * | i, | |
int | col, | |||
bool | ascending | |||
) | const |
void KScheduledListItem::paintCell | ( | QPainter * | p, | |
const QColorGroup & | cg, | |||
int | column, | |||
int | width, | |||
int | align | |||
) | [protected] |
QString KScheduledListItem::m_sortKey [private] |
MyMoneyMoney KScheduledListItem::m_amount [private] |