NorMIT-nav  22.09
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

◆ TreeItemModel()

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

Definition at line 24 of file cxTreeItemModel.cpp.

◆ ~TreeItemModel()

cx::TreeItemModel::~TreeItemModel ( )
virtual

Definition at line 134 of file cxTreeItemModel.cpp.

Member Function Documentation

◆ columnCount()

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

Definition at line 169 of file cxTreeItemModel.cpp.

◆ currentItemChanged

void cx::TreeItemModel::currentItemChanged ( )
signal

◆ data()

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

Definition at line 184 of file cxTreeItemModel.cpp.

◆ flags()

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

Definition at line 265 of file cxTreeItemModel.cpp.

◆ getCurrentItem()

TreeNodePtr cx::TreeItemModel::getCurrentItem ( )

Definition at line 147 of file cxTreeItemModel.cpp.

◆ getNodeFromIndex()

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

Definition at line 153 of file cxTreeItemModel.cpp.

◆ getShowColumnsProperty()

StringListPropertyPtr cx::TreeItemModel::getShowColumnsProperty ( )
inline

Definition at line 50 of file cxTreeItemModel.h.

◆ headerData()

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

Definition at line 285 of file cxTreeItemModel.cpp.

◆ index()

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

Definition at line 299 of file cxTreeItemModel.cpp.

◆ loaded

void cx::TreeItemModel::loaded ( )
signal

◆ parent()

QModelIndex cx::TreeItemModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 313 of file cxTreeItemModel.cpp.

◆ repo()

TreeRepositoryPtr cx::TreeItemModel::repo ( )
inline

Definition at line 49 of file cxTreeItemModel.h.

◆ rowCount()

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

Definition at line 176 of file cxTreeItemModel.cpp.

◆ setData()

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

Definition at line 251 of file cxTreeItemModel.cpp.

◆ setSelectionModel()

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

Definition at line 127 of file cxTreeItemModel.cpp.

◆ update

void cx::TreeItemModel::update ( )
slot

Definition at line 62 of file cxTreeItemModel.cpp.


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