17#ifndef AEONGAMES_LISTMODEL_H
18#define AEONGAMES_LISTMODEL_H
19#include <QAbstractListModel>
21#include "aeongames/Node.hpp"
42 int rowCount (
const QModelIndex & index = QModelIndex() )
const = 0;
47 QVariant
data (
const QModelIndex & index,
int role = Qt::DisplayRole )
const = 0;
53 QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const = 0;
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
Return the data for the given index and role.
Node * mNode
Pointer to the associated node.
const Node * GetNode() const
Get a const pointer to the associated node.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const =0
Return the header data for the given section, orientation, and role.
ListModel(QObject *parent=nullptr)
Construct the list model.
virtual ~ListModel()
Destructor.
void SetNode(Node *aNode)
Set the node associated with this model.
int rowCount(const QModelIndex &index=QModelIndex()) const =0
Return the number of rows under the given parent.
Scene graph node representing an entity in the game world.
<- This is here just for the literals