|
Cute Chess
0.1
|
The EngineConfigurationModel class represents a chess engine configuration based model. More...
#include <engineconfigurationmodel.h>
Public Member Functions | |
| QString | chessVariant () const |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | data (const QModelIndex &index, int role) const |
| EngineConfigurationModel (EngineManager *engineManager, QObject *parent=nullptr) | |
| virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| void | setChessVariant (const QString &variant) |
| virtual | ~EngineConfigurationModel () |
The EngineConfigurationModel class represents a chess engine configuration based model.
EngineConfigurationModel is the model part in the Model-View architecture.
The model contains the data providing view classes access to it. When the model is updated (either from the view or by calling methods), all the views are notified about the updates.
EngineConfigurationModel is a list based model; its items don't have parent-child relationship.
Almost all of the method calls are inherited from QAbstractItemModel. Refer to QAbstractItemModel's documentation for better overview of each method.
| EngineConfigurationModel::EngineConfigurationModel | ( | EngineManager * | engineManager, |
| QObject * | parent = nullptr |
||
| ) |
Creates an empty model.
|
virtual |
Destroys the model.
| QString EngineConfigurationModel::chessVariant | ( | ) | const |
Returns the chosen chess variant.
By default an empty string is returned, meaning that engines are not filtered by their supported variants.
| void EngineConfigurationModel::setChessVariant | ( | const QString & | variant | ) |
Sets the chosen chess variant to variant.
1.8.11