MeVisLab Toolbox Reference
ml::ItemChildrenRequestEvent Class Reference

This BaseEvent informs that the children of an item are requested for the first time. More...

#include <mlStandardItemModel.h>

Inheritance diagram for ml::ItemChildrenRequestEvent:
ml::ItemModelEvent ml::BaseEvent

Public Member Functions

 ItemChildrenRequestEvent (const ModelIndex &parentIndexArg)
 
const ModelIndexparentIndex () const
 
- Public Member Functions inherited from ml::ItemModelEvent
 ItemModelEvent ()
 
AbstractItemModelmodel () const
 
- Public Member Functions inherited from ml::BaseEvent
 BaseEvent ()
 
virtual ~BaseEvent ()
 
EventSourcesource () const
 get the Base object emitting this event More...
 

Detailed Description

This BaseEvent informs that the children of an item are requested for the first time.

This can be used to add the direct children of items dynamically when requested. The insertItems call will generate no notification for the parent given in this event (since its children haven't been requested up to now).

Definition at line 171 of file mlStandardItemModel.h.

Constructor & Destructor Documentation

◆ ItemChildrenRequestEvent()

ml::ItemChildrenRequestEvent::ItemChildrenRequestEvent ( const ModelIndex parentIndexArg)
inline

Definition at line 174 of file mlStandardItemModel.h.

Member Function Documentation

◆ parentIndex()

const ModelIndex& ml::ItemChildrenRequestEvent::parentIndex ( ) const
inline

Definition at line 176 of file mlStandardItemModel.h.


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