17#ifndef AEONGAMES_PROPERTYMODEL_H
18#define AEONGAMES_PROPERTYMODEL_H
19#include <QAbstractItemModel>
42 QModelIndex
parent (
const QModelIndex &
index )
const override;
46 int rowCount (
const QModelIndex &
index = QModelIndex() )
const override = 0;
50 int columnCount (
const QModelIndex &
index = QModelIndex() )
const override;
56 QVariant
headerData (
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
60 bool hasChildren (
const QModelIndex &
index = QModelIndex() )
const override;
64 Qt::ItemFlags
flags (
const QModelIndex &
index )
const override;
70 QModelIndex
index (
int row,
int column,
const QModelIndex &
parent = QModelIndex() )
const override = 0;
75 QVariant
data (
const QModelIndex &
index,
int role = Qt::DisplayRole )
const override = 0;
81 bool setData (
const QModelIndex &
index,
const QVariant & value,
int role )
override = 0;
bool setData(const QModelIndex &index, const QVariant &value, int role) override=0
Set the data for the given index and role.
QModelIndex parent(const QModelIndex &index) const override
Return the parent of the given model index.
int rowCount(const QModelIndex &index=QModelIndex()) const override=0
Return the number of rows under the given parent.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Return the header data for the given section, orientation, and role.
virtual ~PropertyModel()
Destructor.
int columnCount(const QModelIndex &index=QModelIndex()) const override
Return the number of columns for children of the given parent.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override=0
Return the index of the item at the given row and column under parent.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override=0
Return the data for the given index and role.
Qt::ItemFlags flags(const QModelIndex &index) const override
Return the item flags for the given model index.
bool hasChildren(const QModelIndex &index=QModelIndex()) const override
Return whether the given parent index has any children.
PropertyModel(QObject *parent=nullptr)
Construct the property model.
<- This is here just for the literals