![]() |
XII Release 0.1.0
|
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>
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 |
![]() | |
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 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 | |
![]() | |
void | dataChanged (const xiiDocumentObject *pObject, QVector< int > roles) |
![]() | |
const xiiDocumentObjectManager * | m_pTree = nullptr |
const xiiRTTI * | m_pType = nullptr |
xiiString | m_sChildProperty |
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");
|
overridevirtual |
Implements xiiQtDocumentTreeModelAdapter.