CustusX  2023.01.05-dev+develop.0da12
An IGT application
cx::TreeItemModel Class Reference

#include <cxTreeItemModel.h>

Inheritance diagram for cx::TreeItemModel:

Public Slots

void update ()
 

Signals

void loaded ()
 
void currentItemChanged ()
 

Public Member Functions

 TreeItemModel (XmlOptionFile options, VisServicesPtr services, QObject *parent=0)
 
virtual ~TreeItemModel ()
 
void setSelectionModel (QItemSelectionModel *selectionModel)
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual bool setData (const QModelIndex &index, const QVariant &value, int role)
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
TreeNodePtr getCurrentItem ()
 
TreeNodePtr getNodeFromIndex (const QModelIndex &index)
 
TreeRepositoryPtr repo ()
 
StringListPropertyPtr getShowColumnsProperty ()
 

Detailed Description

Definition at line 28 of file cxTreeItemModel.h.

Constructor & Destructor Documentation

cx::TreeItemModel::TreeItemModel ( XmlOptionFile  options,
VisServicesPtr  services,
QObject *  parent = 0 
)

Definition at line 24 of file cxTreeItemModel.cpp.

cx::TreeItemModel::~TreeItemModel ( )
virtual

Definition at line 134 of file cxTreeItemModel.cpp.

Member Function Documentation

int cx::TreeItemModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 169 of file cxTreeItemModel.cpp.

void cx::TreeItemModel::currentItemChanged ( )
signal
QVariant cx::TreeItemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 184 of file cxTreeItemModel.cpp.

Qt::ItemFlags cx::TreeItemModel::flags ( const QModelIndex &  index) const
virtual

Definition at line 265 of file cxTreeItemModel.cpp.

TreeNodePtr cx::TreeItemModel::getCurrentItem ( )

Definition at line 147 of file cxTreeItemModel.cpp.

TreeNodePtr cx::TreeItemModel::getNodeFromIndex ( const QModelIndex &  index)

Definition at line 153 of file cxTreeItemModel.cpp.

StringListPropertyPtr cx::TreeItemModel::getShowColumnsProperty ( )
inline

Definition at line 50 of file cxTreeItemModel.h.

QVariant cx::TreeItemModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 285 of file cxTreeItemModel.cpp.

QModelIndex cx::TreeItemModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

Definition at line 299 of file cxTreeItemModel.cpp.

void cx::TreeItemModel::loaded ( )
signal
QModelIndex cx::TreeItemModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 313 of file cxTreeItemModel.cpp.

TreeRepositoryPtr cx::TreeItemModel::repo ( )
inline

Definition at line 49 of file cxTreeItemModel.h.

int cx::TreeItemModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 176 of file cxTreeItemModel.cpp.

bool cx::TreeItemModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
virtual

Definition at line 251 of file cxTreeItemModel.cpp.

void cx::TreeItemModel::setSelectionModel ( QItemSelectionModel *  selectionModel)

Definition at line 127 of file cxTreeItemModel.cpp.

void cx::TreeItemModel::update ( )
slot

Definition at line 62 of file cxTreeItemModel.cpp.


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