Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::Batch::RowLocationAdapter Class Reference

#include <RowLocationAdapter.h>

Public Member Functions

RowLocation atIndex (QModelIndexForMainModel const &index) const
 
QModelIndexForMainModel indexAt (RowLocation const &location, int column=0) const
 
boost::optional< QModelIndexForMainModelindexIfExistsAt (RowLocation const &location, int column=0) const
 
 RowLocationAdapter (QStandardItemModel const &model)
 

Private Member Functions

QModelIndex walkFromRootToParentIndexOf (RowLocation const &location) const
 

Private Attributes

QStandardItemModel const & m_model
 

Detailed Description

Definition at line 21 of file RowLocationAdapter.h.

Constructor & Destructor Documentation

◆ RowLocationAdapter()

MantidQt::MantidWidgets::Batch::RowLocationAdapter::RowLocationAdapter ( QStandardItemModel const &  model)

Definition at line 10 of file RowLocationAdapter.cpp.

Member Function Documentation

◆ atIndex()

RowLocation MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex ( QModelIndexForMainModel const &  index) const

◆ indexAt()

QModelIndexForMainModel MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexAt ( RowLocation const &  location,
int  column = 0 
) const

◆ indexIfExistsAt()

boost::optional< QModelIndexForMainModel > MantidQt::MantidWidgets::Batch::RowLocationAdapter::indexIfExistsAt ( RowLocation const &  location,
int  column = 0 
) const

◆ walkFromRootToParentIndexOf()

QModelIndex MantidQt::MantidWidgets::Batch::RowLocationAdapter::walkFromRootToParentIndexOf ( RowLocation const &  location) const
private

Definition at line 26 of file RowLocationAdapter.cpp.

References m_model, and MantidQt::MantidWidgets::Batch::RowLocation::path().

Referenced by indexIfExistsAt().

Member Data Documentation

◆ m_model

QStandardItemModel const& MantidQt::MantidWidgets::Batch::RowLocationAdapter::m_model
private

Definition at line 31 of file RowLocationAdapter.h.

Referenced by indexIfExistsAt(), and walkFromRootToParentIndexOf().


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