Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtDummyAdapter 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 plQtDummyAdapter:

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 plRTTIGetType () const
 
virtual const plStringGetChildProperty () 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 plDocumentObjectManagerm_pTree = nullptr
 
const plRTTIm_pType = nullptr
 
plString 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: plQtDummyAdapter(pDocument->GetObjectManager(), plGetStaticRTTI<plDocumentRoot>(), "Children");

Member Function Documentation

◆ data()

QVariant plQtDummyAdapter::data ( const plDocumentObject * pObject,
int iRow,
int iColumn,
int iRole ) const
overridevirtual

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