mkRPG
Public Member Functions
ObjectsTreeModel Class Reference

The ObjectsTreeModel class presents an GameObject and its chidren as a tree model. More...

#include <itemmodels.h>

Public Member Functions

 ObjectsTreeModel (QObject *parent=nullptr)
 ObjectsTreeModel (GameObject *o, QObject *parent=nullptr)
void setGameObject (GameObject *o)
int columnCount (const QModelIndex &) const
int rowCount (const QModelIndex &parent) const
QVariant data (const QModelIndex &index, int role) const
QModelIndex index (int row, int column, const QModelIndex &parent) const
QModelIndex parent (const QModelIndex &child) const
QVariant headerData (int section, Qt::Orientation orientation, int role) const
Qt::ItemFlags flags (const QModelIndex &index) const
bool setData (const QModelIndex &index, const QVariant &value, int role)
void setEditable (bool e)
QModelIndex find (int id, const QModelIndex &root=QModelIndex())

Detailed Description

The ObjectsTreeModel class presents an GameObject and its chidren as a tree model.


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines