* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2.
*/
+#ifndef TABLE_MODEL_H
+#define TABLE_MODEL_H
#include <QStringList>
#include <QAbstractTableModel>
Q_OBJECT
public:
- ScoreTableModel(Score *, Course *, QObject *parent = 0);
+ ScoreTableModel(QObject *parent = 0);
+ void set(Score *, Course *);
int rowCount(const QModelIndex & parent) const;
int columnCount(const QModelIndex & parent) const;
QVariant data(const QModelIndex & index, int role) const;
Q_OBJECT
public:
- CourseTableModel(Course *, QObject *parent = 0);
+ CourseTableModel(QObject *parent = 0);
+ void set(Course *);
int rowCount(const QModelIndex & parent) const;
int columnCount(const QModelIndex & parent) const;
QVariant data(const QModelIndex & index, int role) const;
Club *club;
Course *course;
};
+#endif