AddCostPositionModel Class Reference

#include <addcostpositionmodel.h>

Collaboration diagram for AddCostPositionModel:

Collaboration graph
[legend]

List of all members.

Public Slots

void refreshSums (const QModelIndex left, const QModelIndex right)

Signals

void currentSumChanged (double)
void updateView ()

Public Member Functions

 AddCostPositionModel (CostTypeModel *model, CostCentreModel *costcentre, int rowid, double sum, QObject *parent=0)
int rowCount (const QModelIndex &parent) const
int columnCount (const QModelIndex &parent) const
QVariant data (const QModelIndex &index, int role) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
bool insertRows (int position, int rows, const QModelIndex &index=QModelIndex())
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex())
QStringList currentRow () const
double calculateCostCentreSum (int column)
bool isCorrectSpreaded ()
QString costTypesRow ()
QString costSpreadingRow ()
void clear ()


Detailed Description

Definition at line 11 of file addcostpositionmodel.h.


Constructor & Destructor Documentation

AddCostPositionModel::AddCostPositionModel ( CostTypeModel model,
CostCentreModel costcentre,
int  rowid,
double  sum,
QObject *  parent = 0 
)

Definition at line 4 of file addcostpositionmodel.cpp.

Here is the call graph for this function:


Member Function Documentation

double AddCostPositionModel::calculateCostCentreSum ( int  column  ) 

Definition at line 484 of file addcostpositionmodel.cpp.

void AddCostPositionModel::clear (  ) 

Definition at line 628 of file addcostpositionmodel.cpp.

int AddCostPositionModel::columnCount ( const QModelIndex &  parent  )  const

Definition at line 89 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString AddCostPositionModel::costSpreadingRow (  ) 

Definition at line 661 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

QString AddCostPositionModel::costTypesRow (  ) 

Definition at line 638 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

QStringList AddCostPositionModel::currentRow (  )  const

Definition at line 74 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

void AddCostPositionModel::currentSumChanged ( double   )  [signal]

Here is the caller graph for this function:

QVariant AddCostPositionModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 97 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

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

Definition at line 196 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

QVariant AddCostPositionModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 178 of file addcostpositionmodel.cpp.

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

Definition at line 257 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

bool AddCostPositionModel::isCorrectSpreaded (  ) 

Definition at line 633 of file addcostpositionmodel.cpp.

void AddCostPositionModel::refreshSums ( const QModelIndex  left,
const QModelIndex  right 
) [slot]

Definition at line 298 of file addcostpositionmodel.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 284 of file addcostpositionmodel.cpp.

int AddCostPositionModel::rowCount ( const QModelIndex &  parent  )  const

Definition at line 79 of file addcostpositionmodel.cpp.

Here is the caller graph for this function:

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

Definition at line 234 of file addcostpositionmodel.cpp.

void AddCostPositionModel::updateView (  )  [signal]

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:33:36 2009 for Allevo I Costcalculation by  doxygen 1.5.9