kplato

KPlato::DoubleListViewBase Class Reference

#include <kptdoublelistviewbase.h>

Inheritance diagram for KPlato::DoubleListViewBase:

KPlato::ResourceAppointmentsView KPlato::TaskAppointmentsView List of all members.

Detailed Description

The class DoubleListViewBase provides a double listview where the right listview (the slave) containes columns of double values and the left listview (the master) is the 'item' listview and also provides for a sum total column of the values in the slave listview.

This makes it possible to scroll the slave listview and still see the values in the master listview.

Definition at line 59 of file kptdoublelistviewbase.h.


Public Member Functions

 DoubleListViewBase (QWidget *parent, bool description=false)
ListViewmasterListView () const
ListViewslaveListView () const
void setOpen (QListViewItem *item, bool open)
void setNameHeader (QString text)
void setTotalHeader (QString text)
void setDescriptionHeader (QString text)
void addSlaveColumn (QString text)
virtual void print (KPrinter &printer)
virtual void calculate ()
void clearLists ()
virtual void createSlaveItems ()
void clearSlaveList ()
void setFormat (int fieldwidth=0, char fmt='f', int prec=0)
void setMasterFormat (int fieldwidth=0, char fmt='f', int prec=0)
void setSlaveFormat (int fieldwidth=0, char fmt='f', int prec=0)
virtual QSize sizeHint () const
virtual void paintContents (QPainter *p)

Protected Slots

void slotExpanded (QListViewItem *item)
void slotCollapsed (QListViewItem *item)

Classes

class  MasterListItem
class  SlaveListItem

The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys