FreeDebks  1.0.3
 All Classes Files Functions Variables Friends Pages
Public Member Functions | Private Attributes | List of all members
FdDelegateAccountSummary Class Reference

#include <FdViewAccountSummary.hpp>

Collaboration diagram for FdDelegateAccountSummary:
Collaboration graph
[legend]

Public Member Functions

 FdDelegateAccountSummary (FdModelAccountSummary *model, FdSubWindow *subwindow)
QString displayText (const QVariant &value) const
QString displayText (const QVariant &value, const QLocale &locale) const
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const

Private Attributes

FdSubWindowmSubwindow
const FdModelAccountSummarymModel

Detailed Description

Definition at line 106 of file FdViewAccountSummary.hpp.

Constructor & Destructor Documentation

FdDelegateAccountSummary::FdDelegateAccountSummary ( FdModelAccountSummary model,
FdSubWindow subwindow 
)
explicit

Definition at line 517 of file FdViewAccountSummary.cpp.

Member Function Documentation

QString FdDelegateAccountSummary::displayText ( const QVariant &  value) const

Definition at line 522 of file FdViewAccountSummary.cpp.

QString FdDelegateAccountSummary::displayText ( const QVariant &  value,
const QLocale &  locale 
) const

Reimplemented. Dates are displayed using the format dd.MM.yyy and doubles with two decimals, even if they are zero.

Definition at line 530 of file FdViewAccountSummary.cpp.

void FdDelegateAccountSummary::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const

Reimplemented. Negative doubles appear in red.

Definition at line 543 of file FdViewAccountSummary.cpp.

Member Data Documentation

const FdModelAccountSummary* FdDelegateAccountSummary::mModel
private

Definition at line 110 of file FdViewAccountSummary.hpp.

FdSubWindow* FdDelegateAccountSummary::mSubwindow
private

Definition at line 109 of file FdViewAccountSummary.hpp.


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