public:
ScoreTableModel(QObject *parent = 0);
- void set(Score *, Course *);
+ void set(Score *, Course *, int handicap = -1);
int rowCount(const QModelIndex & parent) const;
int columnCount(const QModelIndex & parent) const;
QVariant data(const QModelIndex & index, int role) const;
Score *score;
Club *club;
Course *course;
+
+ // Current handicap
+ int handicap;
};
class CourseTableModel : public QAbstractTableModel