Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtDocumentTreeModelAdapter Class Referenceabstract

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

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for plQtDocumentTreeModelAdapter:

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 plRTTIGetType () const
 
virtual const plStringGetChildProperty () 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 plDocumentObjectManagerm_pTree = nullptr
 
const plRTTIm_pType = nullptr
 
plString m_sChildProperty
 

Detailed Description

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.


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