BCESolve
BCETableModel Class Reference

Table models for BCEViewer. More...

#include <bcetablemodel.hpp>

Inheritance diagram for BCETableModel:
Collaboration diagram for BCETableModel:

Public Member Functions

 BCETableModel (BCEGame *_game, int _state)
 Constructor.
 
Qt::ItemFlags flags (const QModelIndex &index) const
 Returns flags. More...
 
void emitLayoutChanged ()
 Emits layoutChanged signal.
 
bool setState (int newState)
 Sets the state to newState.
 

Protected Attributes

int state
 The state that the model is associated with.
 
BCEGamegame
 Pointer to the associated game.
 

Detailed Description

Table models for BCEViewer.

Specializes QAbstractTableModel for the BCEViewer program. Sets flags, reimplements the rowCount and columnCount methods to return the numbers of actions. Also contains members to indicate which state the model is currently associated with.

Member Function Documentation

◆ flags()

Qt::ItemFlags BCETableModel::flags ( const QModelIndex &  index) const
inline

Returns flags.

Returns flags that indicate the model is enabled, can be edited, and can be selected.


The documentation for this class was generated from the following file: