![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
#include <Libs/Widgets/ctkFlatProxyModel.h>


Public Types | |
| typedef QAbstractProxyModel | Superclass |
Public Member Functions | |
| virtual int | columnCount (const QModelIndex &parent) const |
| ctkFlatProxyModel (QObject *parentObject=0) | |
| int | endFlattenLevel () const |
| int | hideLevel () const |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const |
| virtual QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const |
| virtual QModelIndex | mapToSource (const QModelIndex &sourceIndex) const |
| virtual QModelIndex | parent (const QModelIndex &child) const |
| virtual int | rowCount (const QModelIndex &parent) const |
| void | setEndFlattenLevel (int level) |
| void | setHideLevel (int level) |
| void | setStartFlattenLevel (int level) |
| int | startFlattenLevel () const |
| virtual | ~ctkFlatProxyModel () |
Protected Attributes | |
| QScopedPointer< ctkFlatProxyModelPrivate > | d_ptr |
Properties | |
| int | endFlattenLevel |
| level for which to stop flattening the rows. -1 by default More... | |
| int | hideLevel |
| int | startFlattenLevel |
ctkFlatProxyModel intends to flatten contiguous hierarchies within a model. For now, it only supports the toplevel hierarchy flatten with the 1 degree children. The items in the levels being flatten don't appear in the model anymore, however their children will be visible.
Definition at line 39 of file ctkFlatProxyModel.h.
| typedef QAbstractProxyModel ctkFlatProxyModel::Superclass |
Definition at line 52 of file ctkFlatProxyModel.h.
| ctkFlatProxyModel::ctkFlatProxyModel | ( | QObject * | parentObject = 0 | ) |
|
virtual |
|
virtual |
| int ctkFlatProxyModel::endFlattenLevel | ( | ) | const |
| int ctkFlatProxyModel::hideLevel | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void ctkFlatProxyModel::setEndFlattenLevel | ( | int | level | ) |
| void ctkFlatProxyModel::setHideLevel | ( | int | level | ) |
| void ctkFlatProxyModel::setStartFlattenLevel | ( | int | level | ) |
| int ctkFlatProxyModel::startFlattenLevel | ( | ) | const |
|
protected |
Definition at line 75 of file ctkFlatProxyModel.h.
|
readwrite |
level for which to stop flattening the rows. -1 by default
Definition at line 1 of file ctkFlatProxyModel.h.
|
readwrite |
level for which to stop flattening the rows. -1 by default Not supported yet.
Definition at line 1 of file ctkFlatProxyModel.h.
|
readwrite |
level for which to start flattening the rows. -1 by default Not supported yet.
Definition at line 1 of file ctkFlatProxyModel.h.