|
Aeon Engine c550894
AeonGames Open Source Game Engine
|
List model that enumerates the components attached to a node. More...
#include <C:/Code/AeonEngine/tools/worldeditor/models/ComponentListModel.h>


Public Member Functions | |
| ComponentListModel (QObject *parent=nullptr) | |
| Construct the component list model. | |
| virtual | ~ComponentListModel () |
| Destructor. | |
Qt QAbstractListModel overrides | |
| int | rowCount (const QModelIndex &index=QModelIndex()) const override |
| Return the number of rows under the given parent. | |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| Return the data for the given index and role. | |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| Return the header data for the given section, orientation, and role. | |
| Public Member Functions inherited from AeonGames::ListModel | |
| ListModel (QObject *parent=nullptr) | |
| Construct the list model. | |
| virtual | ~ListModel () |
| Destructor. | |
| 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. | |
Additional Inherited Members | |
| Node * | mNode {} |
| Pointer to the associated node. | |
List model that enumerates the components attached to a node.
Definition at line 26 of file ComponentListModel.h.
| AeonGames::ComponentListModel::ComponentListModel | ( | QObject * | parent = nullptr | ) |
Construct the component list model.
| parent | Parent QObject. |
Definition at line 24 of file ComponentListModel.cpp.
|
overridevirtual |
Return the data for the given index and role.
| index | Model index. |
| role | Data role. |
Implements AeonGames::ListModel.
Definition at line 53 of file ComponentListModel.cpp.
|
overridevirtual |
Return the header data for the given section, orientation, and role.
| section | Header section index. |
| orientation | Horizontal or vertical header. |
| role | Data role. |
Implements AeonGames::ListModel.
Definition at line 29 of file ComponentListModel.cpp.
|
overridevirtual |
Return the number of rows under the given parent.
| index | Parent model index. |
Implements AeonGames::ListModel.
Definition at line 44 of file ComponentListModel.cpp.