Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryPerspectiveListModel.h>
Public Types | |
enum | Role { Id, Description } |
Public Member Functions | |
PerspectiveListModel (IPerspectiveRegistry &perspReg, bool markDefault=true, QObject *parent=nullptr) | |
~PerspectiveListModel () | |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QString | perspectiveName (const QModelIndex &index) const |
SmartPointer< IPerspectiveDescriptor > | perspectiveDescriptor (const QModelIndex &index) const |
QModelIndex | index (const QString &perspId) const |
Definition at line 32 of file berryPerspectiveListModel.h.
Enumerator | |
---|---|
Id | |
Description |
Definition at line 38 of file berryPerspectiveListModel.h.
berry::PerspectiveListModel::PerspectiveListModel | ( | IPerspectiveRegistry & | perspReg, |
bool | markDefault = true , |
||
QObject * | parent = nullptr |
||
) |
Definition at line 42 of file berryPerspectiveListModel.cpp.
berry::PerspectiveListModel::~PerspectiveListModel | ( | ) |
Definition at line 48 of file berryPerspectiveListModel.cpp.
|
override |
Definition at line 57 of file berryPerspectiveListModel.cpp.
References Description, and Id.
|
override |
Definition at line 97 of file berryPerspectiveListModel.cpp.
QModelIndex berry::PerspectiveListModel::index | ( | const QString & | perspId | ) | const |
Definition at line 121 of file berryPerspectiveListModel.cpp.
IPerspectiveDescriptor::Pointer berry::PerspectiveListModel::perspectiveDescriptor | ( | const QModelIndex & | index | ) | const |
Definition at line 116 of file berryPerspectiveListModel.cpp.
QString berry::PerspectiveListModel::perspectiveName | ( | const QModelIndex & | index | ) | const |
Definition at line 109 of file berryPerspectiveListModel.cpp.
|
override |
Definition at line 52 of file berryPerspectiveListModel.cpp.