1 #ifndef PROJECTCONTRIBUTORIESTABLEMODEL_H
2 #define PROJECTCONTRIBUTORIESTABLEMODEL_H
3 #include <QAbstractTableModel>
7 #include "models/project.h"
8 #include "models/rate.h"
34 int rowCount(
const QModelIndex &)
const;
50 QVariant
data(
const QModelIndex &index,
int role)
const;
61 int section, Qt::Orientation orientation,
int role)
const;
70 bool setData(
const QModelIndex & index,
71 const QVariant & value,
72 int role = Qt::EditRole);
79 Qt::ItemFlags
flags(
const QModelIndex & index)
const ;
86 void append(QPair<Models::Project *, Models::Rate> p);
113 void remove(
int index);
121 QPair<Models::Project*, Models::Rate>
getProject(
const int row);
128 QList<QPair<Models::Project*, Models::Rate> >
getProjects(
void);
132 QList<QPair<Models::Project*, Models::Rate> > _projects;
133 QList<int> _selectedProjects;
141 #endif // PROJECTCONTRIBUTORIESTABLEMODEL_H