XII Release 0.1.0
Loading...
Searching...
No Matches
xiiQtDocumentTreeModelAdapter Class Referenceabstract

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

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for xiiQtDocumentTreeModelAdapter:
[legend]

Signals

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

Public Member Functions

 xiiQtDocumentTreeModelAdapter (const xiiDocumentObjectManager *pTree, const xiiRTTI *pType, const char *szChildProperty)
 Constructor. If m_sChildProperty is empty, this type does not have children.
 
virtual const xiiRTTIGetType () const
 
virtual const xiiStringGetChildProperty () const
 
virtual QVariant data (const xiiDocumentObject *pObject, int iRow, int iColumn, int iRole=Qt::DisplayRole) const =0
 
virtual bool setData (const xiiDocumentObject *pObject, int iRow, int iColumn, const QVariant &value, int iRole) const
 
virtual Qt::ItemFlags flags (const xiiDocumentObject *pObject, int iRow, int iColumn) const
 

Protected Attributes

const xiiDocumentObjectManagerm_pTree = nullptr
 
const xiiRTTIm_pType = nullptr
 
xiiString m_sChildProperty
 

Detailed Description

Adapter that defines data for specific type in the xiiQtDocumentTreeModel.

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: