Isis Developer Reference
Isis::SubTreeProxyModel Class Reference

#include <SubTreeProxyModel.h>

Inheritance diagram for Isis::SubTreeProxyModel:
Inheritance graph
Collaboration diagram for Isis::SubTreeProxyModel:
Collaboration graph

Public Member Functions

 SubTreeProxyModel (QObject *parent=0)
 Constructs a SubTreeProxyModel. More...
 
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)
 

Detailed Description

Author
????-??-?? Ian Humphrey

Constructor & Destructor Documentation

◆ SubTreeProxyModel()

Isis::SubTreeProxyModel::SubTreeProxyModel ( QObject parent = 0)
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().

Parameters
QObject*parent The parent of this SubTreeProxyModel.
See also
JigsawDialog::createObservationSolveSettingsTreeView()
SubTreeProxyModel::setRoot()

Member Function Documentation

◆ mapFromSource()

QModelIndex Isis::SubTreeProxyModel::mapFromSource ( const QModelIndex &  sourceIndex) const

◆ mapToSource()

QModelIndex Isis::SubTreeProxyModel::mapToSource ( const QModelIndex &  proxyIndex) const

◆ setRoot()

bool Isis::SubTreeProxyModel::setRoot ( const QStandardItem item)

◆ setSourceModel()

void Isis::SubTreeProxyModel::setSourceModel ( QAbstractItemModel *  newSourceModel)

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