Isis 3 Programmer 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.
 
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
 

Detailed Description

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

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

Definition at line 24 of file SubTreeProxyModel.h.

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()

Definition at line 30 of file SubTreeProxyModel.cpp.

Member Function Documentation

◆ mapFromSource()

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

Definition at line 36 of file SubTreeProxyModel.cpp.

◆ mapToSource()

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

Definition at line 66 of file SubTreeProxyModel.cpp.

◆ setRoot()

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

Definition at line 85 of file SubTreeProxyModel.cpp.

◆ setSourceModel()

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

Definition at line 71 of file SubTreeProxyModel.cpp.

Member Data Documentation

◆ m_root

QPersistentModelIndex Isis::SubTreeProxyModel::m_root
private

Definition at line 50 of file SubTreeProxyModel.h.


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