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

#include <FdViewAccountSummary.hpp>

Collaboration diagram for FdModelAccountSummary:
Collaboration graph
[legend]

Public Slots

void refresh ()

Public Member Functions

 FdModelAccountSummary (FdSubWindow *mSubwindow, FdItemCoa_p account)
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QModelIndexList entryByPartialText (QString text) const
FdItemCoa_p selectedCounterpart (const QModelIndex &index) const
FdItemJournal_p selectedEntry (const QModelIndex &index) const

Private Attributes

FdSubWindowmSubwindow
FdItemCoa_p mAccount
QList< FdItemJournal_p > mEntries

Detailed Description

Definition at line 84 of file FdViewAccountSummary.hpp.

Constructor & Destructor Documentation

FdModelAccountSummary::FdModelAccountSummary ( FdSubWindow mSubwindow,
FdItemCoa_p  account 
)
explicit

Definition at line 352 of file FdViewAccountSummary.cpp.

Member Function Documentation

int FdModelAccountSummary::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 451 of file FdViewAccountSummary.cpp.

QVariant FdModelAccountSummary::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 357 of file FdViewAccountSummary.cpp.

QModelIndexList FdModelAccountSummary::entryByPartialText ( QString  text) const

This function returns the index of the first entry whose label contains or amount is text, or an invalid index if it founds nothing.

Definition at line 459 of file FdViewAccountSummary.cpp.

QVariant FdModelAccountSummary::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 423 of file FdViewAccountSummary.cpp.

void FdModelAccountSummary::refresh ( )
slot

Definition at line 470 of file FdViewAccountSummary.cpp.

int FdModelAccountSummary::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 446 of file FdViewAccountSummary.cpp.

FdItemCoa_p FdModelAccountSummary::selectedCounterpart ( const QModelIndex &  index) const

Returns the counterpart account in the selected row.

Definition at line 490 of file FdViewAccountSummary.cpp.

FdItemJournal_p FdModelAccountSummary::selectedEntry ( const QModelIndex &  index) const

Returns the selected entry.

Definition at line 507 of file FdViewAccountSummary.cpp.

Member Data Documentation

FdItemCoa_p FdModelAccountSummary::mAccount
private

Definition at line 90 of file FdViewAccountSummary.hpp.

QList<FdItemJournal_p> FdModelAccountSummary::mEntries
private

Definition at line 91 of file FdViewAccountSummary.hpp.

FdSubWindow* FdModelAccountSummary::mSubwindow
private

Definition at line 89 of file FdViewAccountSummary.hpp.


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