![]() |
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 |
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 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 | |
Signals inherited from xiiQtDocumentTreeModelAdapter | |
| void | dataChanged (const xiiDocumentObject *pObject, QVector< int > roles) |
Protected Attributes inherited from xiiQtDocumentTreeModelAdapter | |
| 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.