![]() |
Plasma Engine
2.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 | |
| plQtDummyAdapter (const plDocumentObjectManager *pTree, const plRTTI *pType, const char *szChildProperty) | |
| virtual QVariant | data (const plDocumentObject *pObject, int iRow, int iColumn, int iRole) const override |
Public Member Functions inherited from plQtDocumentTreeModelAdapter | |
| plQtDocumentTreeModelAdapter (const plDocumentObjectManager *pTree, const plRTTI *pType, const char *szChildProperty) | |
| Constructor. If m_sChildProperty is empty, this type does not have children. | |
| virtual const plRTTI * | GetType () const |
| virtual const plString & | GetChildProperty () const |
| virtual bool | setData (const plDocumentObject *pObject, int iRow, int iColumn, const QVariant &value, int iRole) const |
| virtual Qt::ItemFlags | flags (const plDocumentObject *pObject, int iRow, int iColumn) const |
Additional Inherited Members | |
Signals inherited from plQtDocumentTreeModelAdapter | |
| void | dataChanged (const plDocumentObject *pObject, QVector< int > roles) |
Protected Attributes inherited from plQtDocumentTreeModelAdapter | |
| const plDocumentObjectManager * | m_pTree = nullptr |
| const plRTTI * | m_pType = nullptr |
| plString | 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: plQtDummyAdapter(pDocument->GetObjectManager(), plGetStaticRTTI<plDocumentRoot>(), "Children");
|
overridevirtual |
Implements plQtDocumentTreeModelAdapter.