23#ifndef BCEPROBABILITYTABLEMODEL_HPP
24#define BCEPROBABILITYTABLEMODEL_HPP
27#include <QAbstractTableModel>
51 Qt::ItemFlags
flags(
const QModelIndex & index)
const
52 {
return Qt::ItemIsEditable | Qt::ItemIsEnabled | Qt::ItemIsSelectable; }
55 int rowCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE
58 int columnCount(
const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE
63 { emit layoutChanged(); }
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: bceprobabilitytablemodel.hpp:39
void emitLayoutChanged()
Emits layoutChanged signal.
Definition: bceprobabilitytablemodel.hpp:62
BCEGame * game
Pointer to the associated game.
Definition: bceprobabilitytablemodel.hpp:67
BCEProbabilityTableModel(BCEGame *_game)
Constructor.
Definition: bceprobabilitytablemodel.hpp:44
int rowCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of row player actions.
Definition: bceprobabilitytablemodel.hpp:55
Qt::ItemFlags flags(const QModelIndex &index) const
Returns flags.
Definition: bceprobabilitytablemodel.hpp:51
int columnCount(const QModelIndex &parent=QModelIndex()) const Q_DECL_OVERRIDE
Returns the number of column player actions.
Definition: bceprobabilitytablemodel.hpp:58