Gui::DocumentModelIndex Class Reference

Public Member Functions

void appendChild (DocumentModelIndex *child)
 
DocumentModelIndexchild (int row)
 
int childCount () const
 
virtual QVariant data (int role) const
 
virtual Qt::ItemFlags flags () const
 
DocumentModelIndexparent () const
 
QList< DocumentModelIndex * > removeAll ()
 
void removeChild (int row)
 
int row () const
 
virtual bool setData (const QVariant &value, int role)
 
void setParent (DocumentModelIndex *parent)
 
virtual ~DocumentModelIndex ()
 
- Public Member Functions inherited from Base::BaseClass
 BaseClass ()
 Construction. More...
 
 BaseClass (const BaseClass &)=default
 
virtual PyObjectgetPyObject ()
 This method returns the Python wrapper for a C++ object. More...
 
virtual Type getTypeId () const
 
bool isDerivedFrom (const Type type) const
 
BaseClassoperator= (const BaseClass &)=default
 
virtual void setPyObject (PyObject *)
 
virtual ~BaseClass ()
 Destruction. More...
 

Protected Member Functions

 DocumentModelIndex ()
 
void reset ()
 

Protected Attributes

QList< DocumentModelIndex * > childItems
 
DocumentModelIndexparentItem
 

Additional Inherited Members

- Static Public Member Functions inherited from Base::BaseClass
static void * create ()
 
static Type getClassTypeId ()
 
static void init ()
 
- Static Protected Member Functions inherited from Base::BaseClass
static void initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr)
 

Constructor & Destructor Documentation

◆ ~DocumentModelIndex()

virtual Gui::DocumentModelIndex::~DocumentModelIndex ( )
virtual

References childItems.

◆ DocumentModelIndex()

Gui::DocumentModelIndex::DocumentModelIndex ( )
protected

Member Function Documentation

◆ appendChild()

void Gui::DocumentModelIndex::appendChild ( DocumentModelIndex child)

References child(), childItems, and setParent().

◆ child()

DocumentModelIndex * Gui::DocumentModelIndex::child ( int  row)

◆ childCount()

int Gui::DocumentModelIndex::childCount ( ) const

References childItems.

Referenced by Gui::DocumentModel::rowCount().

◆ data()

◆ flags()

virtual Qt::ItemFlags Gui::DocumentModelIndex::flags ( ) const
virtual

Reimplemented in Gui::ApplicationIndex.

◆ parent()

◆ removeAll()

QList< DocumentModelIndex * > Gui::DocumentModelIndex::removeAll ( )

References childItems.

◆ removeChild()

void Gui::DocumentModelIndex::removeChild ( int  row)

References childItems.

◆ reset()

void Gui::DocumentModelIndex::reset ( )
protected

◆ row()

int Gui::DocumentModelIndex::row ( ) const

References childItems, and parentItem.

◆ setData()

virtual bool Gui::DocumentModelIndex::setData ( const QVariant &  value,
int  role 
)
virtual

◆ setParent()

void Gui::DocumentModelIndex::setParent ( DocumentModelIndex parent)

References parent(), and parentItem.

Referenced by appendChild().

Member Data Documentation

◆ childItems

◆ parentItem

DocumentModelIndex* Gui::DocumentModelIndex::parentItem
protected

Referenced by parent(), row(), and setParent().


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