![]() |
XII Release 0.1.0
|
Adapter that defines data for specific type in the xiiQtDocumentTreeModel. More...
#include <RawDocumentTreeModel.moc.h>
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 xiiRTTI * | GetType () const |
virtual const xiiString & | GetChildProperty () 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 xiiDocumentObjectManager * | m_pTree = nullptr |
const xiiRTTI * | m_pType = nullptr |
xiiString | m_sChildProperty |
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.