|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
Abstract list model base class associated with a scene node. More...
#include <C:/Code/AeonEngine/tools/worldeditor/models/ListModel.h>


Public Member Functions | |
| ListModel (QObject *parent=nullptr) | |
| Construct the list model. | |
| virtual | ~ListModel () |
| Destructor. | |
Qt QAbstractListModel overrides | |
| Node * | mNode {} |
| Pointer to the associated node. | |
| int | rowCount (const QModelIndex &index=QModelIndex()) const =0 |
| Return the number of rows under the given parent. | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const =0 |
| Return the data for the given index and role. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const =0 |
| Return the header data for the given section, orientation, and role. | |
| void | SetNode (Node *aNode) |
| Set the node associated with this model. | |
| const Node * | GetNode () const |
| Get a const pointer to the associated node. | |
| Node * | GetNode () |
| Get a mutable pointer to the associated node. | |
Abstract list model base class associated with a scene node.
Definition at line 26 of file ListModel.h.
| AeonGames::ListModel::ListModel | ( | QObject * | parent = nullptr | ) |
Construct the list model.
| parent | Parent QObject. |
Definition at line 30 of file ListModel.cpp.
|
pure virtual |
Return the data for the given index and role.
| index | Model index. |
| role | Data role. |
Implemented in AeonGames::ComponentListModel.
| Node * AeonGames::ListModel::GetNode | ( | ) |
Get a mutable pointer to the associated node.
Definition at line 45 of file ListModel.cpp.
| const Node * AeonGames::ListModel::GetNode | ( | ) | const |
Get a const pointer to the associated node.
Definition at line 41 of file ListModel.cpp.
|
pure virtual |
Return the header data for the given section, orientation, and role.
| section | Header section index. |
| orientation | Horizontal or vertical header. |
| role | Data role. |
Implemented in AeonGames::ComponentListModel.
|
pure virtual |
Return the number of rows under the given parent.
| index | Parent model index. |
Implemented in AeonGames::ComponentListModel.
| void AeonGames::ListModel::SetNode | ( | Node * | aNode | ) |
Set the node associated with this model.
| aNode | Pointer to the node. |
Definition at line 35 of file ListModel.cpp.
|
protected |
Pointer to the associated node.
Definition at line 67 of file ListModel.h.