22 #ifndef SGPAYOFFTABLEMODEL_H
23 #define SGPAYOFFTABLEMODEL_H
26 #include <QMainWindow>
27 #include <QAbstractTableModel>
30 #include "sgtablemodel.hpp"
56 QVariant
data(
const QModelIndex & index,
57 int role)
const Q_DECL_OVERRIDE;
63 Qt::Orientation orientation,
64 int role)
const Q_DECL_OVERRIDE;
69 bool setData(
const QModelIndex & index,
const QVariant & value,
int role);
Table models for SGViewer.
Definition: sgtablemodel.hpp:39
Describes a stochastic game.
Definition: sggame.hpp:40
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE
Returns formatted header data.
Definition: sgpayofftablemodel.cpp:44
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE
Returns formatted data.
Definition: sgpayofftablemodel.cpp:25
Derived class for payoff table models.
Definition: sgpayofftablemodel.hpp:42
bool setData(const QModelIndex &index, const QVariant &value, int role)
Sets data.
Definition: sgpayofftablemodel.cpp:65
SGPayoffTableModel(SGGame *_game, int _state)
Constructor.
Definition: sgpayofftablemodel.hpp:47