BCESolve
|
Table models for BCEViewer. More...
#include <bcetablemodel.hpp>
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. | |
BCEGame * | game |
Pointer to the associated game. | |
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.
|
inline |
Returns flags.
Returns flags that indicate the model is enabled, can be edited, and can be selected.