1 #ifndef PROJECTSTABLEMODEL_H 
    2 #define PROJECTSTABLEMODEL_H 
    5 #include <QAbstractTableModel> 
    7 #include "models/project.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 Project &project);
 
   83     void remove(
const int i);
 
   90     Qt::ItemFlags flags(
const QModelIndex & index) 
const ;
 
  102     QList<Project> getProjects() 
const;
 
  105     QList<Project> _projects;   
 
  110 #endif // PROJECTSTABLEMODEL_H 
The Project class : Project linked to a Customer. 
Definition: project.h:17