1 #ifndef BILLINGSTABLEMODEL_H
2 #define BILLINGSTABLEMODEL_H
5 #include <QAbstractTableModel>
7 #include "models/billing.h"
10 using namespace Models;
11 using namespace Utils;
37 int rowCount(
const QModelIndex &)
const;
43 int columnCount(
const QModelIndex &)
const;
51 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
60 QVariant headerData(
int section, Qt::Orientation orientation,
61 int role = Qt::DisplayRole)
const;
70 bool setData(
const QModelIndex & index,
const QVariant & value,
71 int role = Qt::EditRole);
77 void append(
const Billing &billing);
83 void remove(
const int i);
90 Qt::ItemFlags flags(
const QModelIndex & index)
const ;
102 QList<Billing> getBillings()
const;
105 QList<Billing> _billings;
110 #endif // BILLINGSTABLEMODEL_H
The Billing class : Billing or Quote of a Customer.
Definition: billing.h:28