![]() |
ezEngine
Release 25.03
|
Adapter that defines data for specific type in the ezQtDocumentTreeModel. More...
#include <RawDocumentTreeModel.moc.h>
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 ezRTTI * | GetType () const |
virtual const ezString & | GetChildProperty () 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 ezDocumentObjectManager * | m_pTree = nullptr |
const ezRTTI * | m_pType = nullptr |
ezString | m_sChildProperty |
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.