1 #ifndef CONTRIBUTORIESTABLEMODEL_H
2 #define CONTRIBUTORIESTABLEMODEL_H
4 #include <QAbstractTableModel>
6 #include "models/contributory.h"
7 #include "models/rate.h"
11 using namespace Models;
12 using namespace Utils;
39 int rowCount(
const QModelIndex &)
const;
46 int columnCount(
const QModelIndex &)
const;
54 QVariant data(
const QModelIndex &index,
int role)
const;
64 int section, Qt::Orientation orientation,
int role)
const;
73 bool setData(
const QModelIndex & index,
74 const QVariant & value,
75 int role = Qt::EditRole);
87 void remove(
const int i);
94 Qt::ItemFlags flags(
const QModelIndex & index)
const ;
101 QList<Contributory> getContributories();
114 double getSumQuantity()
const;
121 QList<Contributory> _contributories;
122 QList<Contributory> _contributoriesToRemoved;
128 #endif // CONTRIBUTORIESTABLEMODEL_H
The Unit enum Unity of work : hour or day.
Definition: contributory.h:18