23#ifndef BCEPRIORTABLEMODEL_HPP
24#define BCEPRIORTABLEMODEL_HPP
27#include <QAbstractTableModel>
52 Qt::ItemFlags
flags(
const QModelIndex & index)
const
53 {
return Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable; }
56 int rowCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE
59 int columnCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE
64 { emit layoutChanged(); }
69 QVariant
data(
const QModelIndex & index,
70 int role)
const Q_DECL_OVERRIDE;
74 bool setData(
const QModelIndex & index,
const QVariant & value,
int role);
80 Qt::Orientation orientation,
81 int role)
const Q_DECL_OVERRIDE;
int getNumStates() const
Returns the number of states.
Definition: bceabstractgame.hpp:247
The base class for games of incomplete information.
Definition: bcegame.hpp:40
Table models for BCEViewer.
Definition: bcepriortablemodel.hpp:40
void emitLayoutChanged()
Emits layoutChanged signal.
Definition: bcepriortablemodel.hpp:63
Qt::ItemFlags flags(const QModelIndex &index) const
Returns flags.
Definition: bcepriortablemodel.hpp:52
BCEGame * game
Pointer to the associated game.
Definition: bcepriortablemodel.hpp:85
bool setData(const QModelIndex &index, const QVariant &value, int role)
Reimplements the setData method.
Definition: bcepriortablemodel.cpp:42
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE
Returns formatted header data.
Definition: bcepriortablemodel.cpp:58
int columnCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of column player actions.
Definition: bcepriortablemodel.hpp:59
int rowCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of row player actions.
Definition: bcepriortablemodel.hpp:56
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE
Reimplements the data method.
Definition: bcepriortablemodel.cpp:25
BCEPriorTableModel(BCEGame *_game)
Constructor.
Definition: bcepriortablemodel.hpp:45