XII Release 0.1.0
Loading...
Searching...
No Matches
xiiQtDocumentTreeModelAdapter Class Referenceabstract

#include <RawDocumentTreeModel.moc.h>

Inheritance diagram for xiiQtDocumentTreeModelAdapter:
[legend]

Signals

void dataChanged (const xiiDocumentObject *pObject, QVector< int > roles)

Public Member Functions

 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 QVariant data (const xiiDocumentObject *pObject, int iRow, int iColumn, int iRole=Qt::DisplayRole) const =0
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 Attributes

const xiiDocumentObjectManager * m_pTree = nullptr
const xiiRTTI * m_pType = nullptr
xiiString m_sChildProperty

Detailed Description

Adapter that defines data for specific type in the xiiQtDocumentTreeModel.

Adapters are defined for a given type and define the property for child elements (needs to be array or set). Furthermore they implement various model functions that will be redirected to it by the model for objects of the given type.

Constructor & Destructor Documentation

◆ xiiQtDocumentTreeModelAdapter()

xiiQtDocumentTreeModelAdapter::xiiQtDocumentTreeModelAdapter ( const xiiDocumentObjectManager * pTree,
const xiiRTTI * pType,
const char * szChildProperty )

Constructor. If m_sChildProperty is empty, this type does not have children.

Copyright (c) Theophilus Eriata. All Rights Reserved.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/GUI/RawDocumentTreeModel.moc.h
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/GUI/Implementation/RawDocumentTreeModel.cpp