TreeModel Class Referenceabstract

#include <ArmarXGui/gui-plugins/ScenarioManager/gui/treemodel.h>

+ Inheritance diagram for TreeModel:

Public Member Functions

virtual void clear ()=0
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
bool insertColumn (int position, QVariant data, const QModelIndex &parent=QModelIndex())
 
bool insertRow (int position, TreeItem *item, const QModelIndex &parent=QModelIndex())
 
QModelIndex parent (const QModelIndex &index) const override
 
bool removeColumn (int position, const QModelIndex &parent=QModelIndex())
 
bool removeRow (int position, const QModelIndex &parent=QModelIndex())
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
 TreeModel (QObject *parent=0)
 
 ~TreeModel () override
 

Protected Member Functions

TreeItemgetItem (const QModelIndex &index) const
 

Protected Attributes

TreeItemrootItem
 

Detailed Description

Definition at line 34 of file treemodel.h.

Constructor & Destructor Documentation

◆ TreeModel()

TreeModel ( QObject *  parent = 0)
explicit

Definition at line 32 of file treemodel.cpp.

◆ ~TreeModel()

~TreeModel ( )
override

Definition at line 37 of file treemodel.cpp.

Member Function Documentation

◆ clear()

virtual void clear ( )
pure virtual

◆ columnCount()

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 45 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ data()

QVariant data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 50 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flags()

Qt::ItemFlags flags ( const QModelIndex &  index) const
override

Definition at line 67 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getItem()

TreeItem * getItem ( const QModelIndex &  index) const
protected

Definition at line 150 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ headerData()

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 85 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ index()

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

Definition at line 96 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insertColumn()

bool insertColumn ( int  position,
QVariant  data,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 165 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ insertRow()

bool insertRow ( int  position,
TreeItem item,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 192 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parent()

QModelIndex parent ( const QModelIndex &  index) const
override

Definition at line 118 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeColumn()

bool removeColumn ( int  position,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 176 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ removeRow()

bool removeRow ( int  position,
const QModelIndex &  parent = QModelIndex() 
)

Definition at line 204 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 136 of file treemodel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ rootItem

TreeItem* rootItem
protected

Definition at line 70 of file treemodel.h.


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