Isis 3 Programmer Reference
|
#include <SubTreeProxyModel.h>
Public Member Functions | |
SubTreeProxyModel (QObject *parent=0) | |
Constructs a SubTreeProxyModel. | |
QModelIndex | mapFromSource (const QModelIndex &sourceIndex) const Q_DECL_OVERRIDE |
QModelIndex | mapToSource (const QModelIndex &proxyIndex) const Q_DECL_OVERRIDE |
void | setSourceModel (QAbstractItemModel *newSourceModel) Q_DECL_OVERRIDE |
bool | setRoot (const QStandardItem *item) |
Private Attributes | |
QPersistentModelIndex | m_root |
????-??-?? Ian Humphrey
Definition at line 24 of file SubTreeProxyModel.h.
|
explicit |
Constructs a SubTreeProxyModel.
Constructs a SubTreeProxyModel that can be used to operate on a sub-section of the source model. By default, the sub tree will be identical to the source model. The setRoot() method can be used to specify where the subtree starts. An example of usage can be found in JigsawDialog::createObservationSolveSettingsTreeView().
QObject | *parent The parent of this SubTreeProxyModel. |
Definition at line 30 of file SubTreeProxyModel.cpp.
QModelIndex Isis::SubTreeProxyModel::mapFromSource | ( | const QModelIndex & | sourceIndex | ) | const |
Definition at line 36 of file SubTreeProxyModel.cpp.
QModelIndex Isis::SubTreeProxyModel::mapToSource | ( | const QModelIndex & | proxyIndex | ) | const |
Definition at line 66 of file SubTreeProxyModel.cpp.
bool Isis::SubTreeProxyModel::setRoot | ( | const QStandardItem * | item | ) |
Definition at line 85 of file SubTreeProxyModel.cpp.
void Isis::SubTreeProxyModel::setSourceModel | ( | QAbstractItemModel * | newSourceModel | ) |
Definition at line 71 of file SubTreeProxyModel.cpp.
|
private |
Definition at line 50 of file SubTreeProxyModel.h.