#include <addcostpositionmodel.h>

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 () |
Definition at line 11 of file addcostpositionmodel.h.
| AddCostPositionModel::AddCostPositionModel | ( | CostTypeModel * | model, | |
| CostCentreModel * | costcentre, | |||
| int | rowid, | |||
| double | sum, | |||
| QObject * | parent = 0 | |||
| ) |
| 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.


| QString AddCostPositionModel::costSpreadingRow | ( | ) |
| QString AddCostPositionModel::costTypesRow | ( | ) |
| QStringList AddCostPositionModel::currentRow | ( | ) | const |
| void AddCostPositionModel::currentSumChanged | ( | double | ) | [signal] |

| QVariant AddCostPositionModel::data | ( | const QModelIndex & | index, | |
| int | role | |||
| ) | const |
| Qt::ItemFlags AddCostPositionModel::flags | ( | const QModelIndex & | index | ) | const |
| 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() | |||
| ) |
| 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.


| 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 |
| 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] |

1.5.9