2 #include <QAbstractTableModel>
9 // TODO: change name to ScoreTableModel
10 class ScoreTableModel : public QAbstractTableModel
17 ScoreTableModel(QObject *parent = 0) : QAbstractTableModel(parent)
21 Qt::ItemFlags flags ( const QModelIndex & index );
22 void setScore(QList<Score *> &sList);
23 void setClub(QList<Club *> &cList);
24 Course *findCourse(QString &clubName, QString &courseName);
25 int rowCount(const QModelIndex & parent) const;
26 int columnCount(const QModelIndex & parent) const;
27 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
28 QVariant data(const QModelIndex & index, int role) const;
29 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
31 int setItem(int row, int col, int data);
33 QString getInfoText();
34 QString getCountText();
42 QList<Score *> scoreList;
43 QList<Club *> clubList;
47 // Current data pointers