AccountingModel Class Reference

#include <accountingmodel.h>

Collaboration diagram for AccountingModel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AccountingModel (QObject *parent=0)
 ~AccountingModel ()
int rowCount (const QModelIndex &parent=QModelIndex()) const
int columnCount (const QModelIndex &parent=QModelIndex()) const
QStringList data (const int row) const
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Qt::ItemFlags flags (const QModelIndex &index) const
bool insertRows (int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex())
void addRow (QString accountingNumber, QString date, QString contraAccount, QString debit, QString credit)
bool insertColumns (int position, int columns, const QModelIndex &index=QModelIndex())
void addColumn (int position, QString columnName)
double debitSum ()
double creditSum ()


Detailed Description

this model is for every account please implement all methodes of the exerciseViewModel

Definition at line 16 of file accountingmodel.h.


Constructor & Destructor Documentation

AccountingModel::AccountingModel ( QObject *  parent = 0  ) 

Definition at line 6 of file accountingmodel.cpp.

Here is the call graph for this function:

AccountingModel::~AccountingModel (  ) 

Definition at line 46 of file accountingmodel.cpp.


Member Function Documentation

void AccountingModel::addColumn ( int  position,
QString  columnName 
)

Definition at line 170 of file accountingmodel.cpp.

Here is the caller graph for this function:

void AccountingModel::addRow ( QString  accountingNumber,
QString  date,
QString  contraAccount,
QString  debit,
QString  credit 
)

Definition at line 127 of file accountingmodel.cpp.

Here is the call graph for this function:

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

Definition at line 21 of file accountingmodel.cpp.

double AccountingModel::creditSum (  ) 

Definition at line 292 of file accountingmodel.cpp.

Here is the caller graph for this function:

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

Definition at line 62 of file accountingmodel.cpp.

QStringList AccountingModel::data ( const int  row  )  const

Definition at line 27 of file accountingmodel.cpp.

double AccountingModel::debitSum (  ) 

Definition at line 282 of file accountingmodel.cpp.

Here is the caller graph for this function:

Qt::ItemFlags AccountingModel::flags ( const QModelIndex &  index  )  const

Definition at line 52 of file accountingmodel.cpp.

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

Definition at line 32 of file accountingmodel.cpp.

bool AccountingModel::insertColumns ( int  position,
int  columns,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 148 of file accountingmodel.cpp.

bool AccountingModel::insertRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 94 of file accountingmodel.cpp.

Here is the caller graph for this function:

bool AccountingModel::removeRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)

Definition at line 113 of file accountingmodel.cpp.

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

Definition at line 15 of file accountingmodel.cpp.

Here is the caller graph for this function:

bool AccountingModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 76 of file accountingmodel.cpp.

Here is the caller graph for this function:


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

Generated on Mon Jun 15 15:39:11 2009 for Allevo II Doublebookkeeping by  doxygen 1.5.9