Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtNameableAdapter Class Reference

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

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for plQtNameableAdapter:

Public Member Functions

 plQtNameableAdapter (const plDocumentObjectManager *pTree, const plRTTI *pType, const char *szChildProperty, const char *szNameProperty)
 
virtual bool setData (const plDocumentObject *pObject, int iRow, int iColumn, const QVariant &value, int iRole) const override
 
virtual Qt::ItemFlags flags (const plDocumentObject *pObject, int iRow, int iColumn) const override
 
- Public Member Functions inherited from plQtNamedAdapter
 plQtNamedAdapter (const plDocumentObjectManager *pTree, const plRTTI *pType, const char *szChildProperty, const char *szNameProperty)
 
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
 

Additional Inherited Members

- Signals inherited from plQtDocumentTreeModelAdapter
void dataChanged (const plDocumentObject *pObject, QVector< int > roles)
 
- Protected Member Functions inherited from plQtNamedAdapter
virtual void TreePropertyEventHandler (const plDocumentObjectPropertyEvent &e)
 
- Protected Attributes inherited from plQtNamedAdapter
plString m_sNameProperty
 
- Protected Attributes inherited from plQtDocumentTreeModelAdapter
const plDocumentObjectManagerm_pTree = nullptr
 
const plRTTIm_pType = nullptr
 
plString m_sChildProperty
 

Detailed Description

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

Member Function Documentation

◆ flags()

Qt::ItemFlags plQtNameableAdapter::flags ( const plDocumentObject * pObject,
int iRow,
int iColumn ) const
overridevirtual

Reimplemented from plQtDocumentTreeModelAdapter.

◆ setData()

bool plQtNameableAdapter::setData ( const plDocumentObject * pObject,
int iRow,
int iColumn,
const QVariant & value,
int iRole ) const
overridevirtual

Reimplemented from plQtDocumentTreeModelAdapter.


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