XII Release 0.1.0
Loading...
Searching...
No Matches
xiiQtDummyAdapter Class Reference

Convenience class that returns the typename as Qt::DisplayRole. Use this for testing or for the document root that can't be seen and is just for defining the hierarchy. More...

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for xiiQtDummyAdapter:
[legend]

Public Member Functions

 xiiQtDummyAdapter (const xiiDocumentObjectManager *pTree, const xiiRTTI *pType, const char *szChildProperty)
 
virtual QVariant data (const xiiDocumentObject *pObject, int iRow, int iColumn, int iRole) const override
 
- Public Member Functions inherited from xiiQtDocumentTreeModelAdapter
 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 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
 

Additional Inherited Members

- Signals inherited from xiiQtDocumentTreeModelAdapter
void dataChanged (const xiiDocumentObject *pObject, QVector< int > roles)
 
- Protected Attributes inherited from xiiQtDocumentTreeModelAdapter
const xiiDocumentObjectManagerm_pTree = nullptr
 
const xiiRTTIm_pType = nullptr
 
xiiString m_sChildProperty
 

Detailed Description

Convenience class that returns the typename as Qt::DisplayRole. Use this for testing or for the document root that can't be seen and is just for defining the hierarchy.

Example: xiiQtDummyAdapter(pDocument->GetObjectManager(), xiiGetStaticRTTI<xiiDocumentRoot>(), "Children");

Member Function Documentation

◆ data()

QVariant xiiQtDummyAdapter::data ( const xiiDocumentObject * pObject,
int iRow,
int iColumn,
int iRole ) const
overridevirtual

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