![]() |
Plasma Engine
2.0
|
Adapter that defines data for specific type in the plQtDocumentTreeModel. More...
#include <RawDocumentTreeModel.moc.h>
Signals | |
void | dataChanged (const plDocumentObject *pObject, QVector< int > roles) |
Public Member Functions | |
plQtDocumentTreeModelAdapter (const plDocumentObjectManager *pTree, const plRTTI *pType, const char *szChildProperty) | |
Constructor. If m_sChildProperty is empty, this type does not have children. | |
virtual const plRTTI * | GetType () const |
virtual const plString & | GetChildProperty () const |
virtual QVariant | data (const plDocumentObject *pObject, int iRow, int iColumn, int iRole=Qt::DisplayRole) const =0 |
virtual bool | setData (const plDocumentObject *pObject, int iRow, int iColumn, const QVariant &value, int iRole) const |
virtual Qt::ItemFlags | flags (const plDocumentObject *pObject, int iRow, int iColumn) const |
Protected Attributes | |
const plDocumentObjectManager * | m_pTree = nullptr |
const plRTTI * | m_pType = nullptr |
plString | m_sChildProperty |
Adapter that defines data for specific type in the plQtDocumentTreeModel.
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.