22#include <QXmlStreamWriter>
29#include "aeongames/ResourceId.hpp"
30#include "aeongames/Model.hpp"
31#include "PropertyModel.h"
36 QAbstractItemModel (
parent ) {}
42 if ( ( orientation == Qt::Horizontal ) && ( role == Qt::DisplayRole ) )
47 return QString (
"Property" );
49 return QString (
"Value" );
75 if (
index.isValid() && (
index.column() == 1 ) )
77 return QAbstractItemModel::flags (
index ) | Qt::ItemIsEditable;
79 return QAbstractItemModel::flags (
index );
Provides the DLL_PROTOBUF export/import macro for protobuf wrapper classes.
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.
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