Developer documentation
Version 3.0.3-105-gd3941f44
MR::GUI::Dialog::TreeModel Class Reference

#include "gui/dialog/list.h"

Inheritance diagram for MR::GUI::Dialog::TreeModel:

Public Member Functions

 TreeModel (QObject *parent)
 
 ~TreeModel ()
 
QVariant data (const QModelIndex &index, int role) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 

Public Attributes

TreeItemrootItem
 

Detailed Description

Definition at line 71 of file list.h.

Constructor & Destructor Documentation

◆ TreeModel()

MR::GUI::Dialog::TreeModel::TreeModel ( QObject *  parent)
inline

Definition at line 74 of file list.h.

◆ ~TreeModel()

MR::GUI::Dialog::TreeModel::~TreeModel ( )
inline

Definition at line 77 of file list.h.

Member Function Documentation

◆ columnCount()

int MR::GUI::Dialog::TreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

QVariant MR::GUI::Dialog::TreeModel::data ( const QModelIndex &  index,
int  role 
) const

◆ flags()

Qt::ItemFlags MR::GUI::Dialog::TreeModel::flags ( const QModelIndex &  index) const

◆ headerData()

QVariant MR::GUI::Dialog::TreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ index()

QModelIndex MR::GUI::Dialog::TreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

◆ parent()

QModelIndex MR::GUI::Dialog::TreeModel::parent ( const QModelIndex &  index) const

◆ rowCount()

int MR::GUI::Dialog::TreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Member Data Documentation

◆ rootItem

TreeItem* MR::GUI::Dialog::TreeModel::rootItem

Definition at line 87 of file list.h.


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