2 * Copyright (C) 2009 Sakari Poussa
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, version 2.
11 #include <QStringList>
12 #include <QAbstractTableModel>
19 class ScoreTableModel : public QAbstractTableModel
24 ScoreTableModel(QObject *parent = 0);
26 void set(Score *, Course *);
27 int rowCount(const QModelIndex & parent) const;
28 int columnCount(const QModelIndex & parent) const;
29 QVariant data(const QModelIndex & index, int role) const;
30 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
47 // Current data pointers
53 class CourseTableModel : public QAbstractTableModel
58 CourseTableModel(QObject *parent = 0);
61 int rowCount(const QModelIndex & parent) const;
62 int columnCount(const QModelIndex & parent) const;
63 QVariant data(const QModelIndex & index, int role) const;
64 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
81 // Current data pointers