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 36 of file treemodel.h.

Constructor & Destructor Documentation

◆ TreeModel()

TreeModel ( QObject * parent = 0)
explicit

Definition at line 32 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ ~TreeModel()

~TreeModel ( )
override

Definition at line 36 of file treemodel.cpp.

Member Function Documentation

◆ clear()

virtual void clear ( )
pure virtual

Implemented in ApplicationDatabaseModel, OpenScenarioModel, ScenarioModel, and SettingsModel.

+ Here is the call graph for this function:

◆ 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 51 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 69 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 154 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 88 of file treemodel.cpp.

◆ index()

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

Definition at line 99 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 169 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 198 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ parent()

QModelIndex parent ( const QModelIndex & index) const
override

Definition at line 121 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 181 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ removeRow()

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

Definition at line 211 of file treemodel.cpp.

+ Here is the call graph for this function:

◆ rowCount()

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

Definition at line 140 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 69 of file treemodel.h.


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