ezEngine  Release 25.03
ezQtDocumentTreeModelAdapter Class Referenceabstract

Adapter that defines data for specific type in the ezQtDocumentTreeModel. More...

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for ezQtDocumentTreeModelAdapter:

Signals

void dataChanged (const ezDocumentObject *pObject, QVector< int > roles)
 

Public Member Functions

 ezQtDocumentTreeModelAdapter (const ezDocumentObjectManager *pTree, const ezRTTI *pType, const char *szChildProperty)
 Constructor. If m_sChildProperty is empty, this type does not have children.
 
virtual const ezRTTIGetType () const
 
virtual const ezStringGetChildProperty () const
 
virtual QVariant data (const ezDocumentObject *pObject, int iRow, int iColumn, int iRole=Qt::DisplayRole) const =0
 
virtual bool setData (const ezDocumentObject *pObject, int iRow, int iColumn, const QVariant &value, int iRole) const
 
virtual Qt::ItemFlags flags (const ezDocumentObject *pObject, int iRow, int iColumn) const
 

Protected Attributes

const ezDocumentObjectManagerm_pTree = nullptr
 
const ezRTTIm_pType = nullptr
 
ezString m_sChildProperty
 

Detailed Description

Adapter that defines data for specific type in the ezQtDocumentTreeModel.

Adapters are defined for a given type and define the property for child elements (needs to be array or set). Furthermore they implement various model functions that will be redirected to it by the model for objects of the given type.


The documentation for this class was generated from the following files: