ScoreTableModel(QObject *parent = 0) : QAbstractTableModel(parent)
{
currentScore = 0;
+ score = 0;
+ club = 0;
+ course = 0;
}
Qt::ItemFlags flags ( const QModelIndex & index );
- void setScore(QList<Score *> &sList);
+ void setScore(QList<Score *> &sList, Score *score = 0);
void setClub(QList<Club *> &cList);
- Course *findCourse(QString &clubName, QString &courseName);
+ Course *findCourse(const QString &clubName, const QString &courseName);
int rowCount(const QModelIndex & parent) const;
int columnCount(const QModelIndex & parent) const;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;