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

Convenience class that implements getting the name via a property on the object. More...

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for xiiQtNamedAdapter:
[legend]

Public Member Functions

 xiiQtNamedAdapter (const xiiDocumentObjectManager *pTree, const xiiRTTI *pType, const char *szChildProperty, const char *szNameProperty)
 
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
 

Protected Member Functions

virtual void TreePropertyEventHandler (const xiiDocumentObjectPropertyEvent &e)
 

Protected Attributes

xiiString m_sNameProperty
 
- Protected Attributes inherited from xiiQtDocumentTreeModelAdapter
const xiiDocumentObjectManagerm_pTree = nullptr
 
const xiiRTTIm_pType = nullptr
 
xiiString m_sChildProperty
 

Additional Inherited Members

- Signals inherited from xiiQtDocumentTreeModelAdapter
void dataChanged (const xiiDocumentObject *pObject, QVector< int > roles)
 

Detailed Description

Convenience class that implements getting the name via a property on the object.

Member Function Documentation

◆ data()

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

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