#include <accountingmodel.h>
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 () |
Definition at line 16 of file accountingmodel.h.
AccountingModel::AccountingModel | ( | QObject * | parent = 0 |
) |
AccountingModel::~AccountingModel | ( | ) |
Definition at line 46 of file accountingmodel.cpp.
void AccountingModel::addColumn | ( | int | position, | |
QString | columnName | |||
) |
void AccountingModel::addRow | ( | QString | accountingNumber, | |
QString | date, | |||
QString | contraAccount, | |||
QString | debit, | |||
QString | credit | |||
) |
int AccountingModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Definition at line 21 of file accountingmodel.cpp.
double AccountingModel::creditSum | ( | ) |
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 | ( | ) |
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() | |||
) |
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 |
bool AccountingModel::setData | ( | const QModelIndex & | index, | |
const QVariant & | value, | |||
int | role = Qt::EditRole | |||
) |