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.
10 #include <QAbstractTableModel>
17 class ScoreTableModel : public QAbstractTableModel
22 ScoreTableModel(Score *, Course *, QObject *parent = 0);
24 int rowCount(const QModelIndex & parent) const;
25 int columnCount(const QModelIndex & parent) const;
26 QVariant data(const QModelIndex & index, int role) const;
27 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
44 // Current data pointers
50 class CourseTableModel : public QAbstractTableModel
55 CourseTableModel(Course *, QObject *parent = 0);
57 int rowCount(const QModelIndex & parent) const;
58 int columnCount(const QModelIndex & parent) const;
59 QVariant data(const QModelIndex & index, int role) const;
60 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
77 // Current data pointers