Mantid
|
#include <FilteredTreeModel.h>
Public Member Functions | |
FilteredTreeModel (RowLocationAdapter rowLocation, QObject *parent=nullptr) | |
bool | isReset () const |
void | resetPredicate () |
RowLocation | rowLocationAt (QModelIndex const &index) const |
void | setPredicate (std::unique_ptr< RowPredicate > predicate) |
Protected Member Functions | |
bool | filterAcceptsRow (int row, const QModelIndex &parent) const override |
Private Attributes | |
std::unique_ptr< RowPredicate > | m_predicate |
RowLocationAdapter | m_rowLocation |
Definition at line 22 of file FilteredTreeModel.h.
MantidQt::MantidWidgets::Batch::FilteredTreeModel::FilteredTreeModel | ( | RowLocationAdapter | rowLocation, |
QObject * | parent = nullptr |
||
) |
Definition at line 11 of file FilteredTreeModel.cpp.
References resetPredicate().
|
overrideprotected |
Definition at line 32 of file FilteredTreeModel.cpp.
References filterAcceptsRow(), index, m_predicate, and rowLocationAt().
Referenced by filterAcceptsRow().
bool MantidQt::MantidWidgets::Batch::FilteredTreeModel::isReset | ( | ) | const |
Definition at line 21 of file FilteredTreeModel.cpp.
References m_predicate.
Referenced by MantidQt::MantidWidgets::Batch::JobTreeView::hasFilter().
void MantidQt::MantidWidgets::Batch::FilteredTreeModel::resetPredicate | ( | ) |
Definition at line 16 of file FilteredTreeModel.cpp.
References m_predicate.
Referenced by FilteredTreeModel(), and MantidQt::MantidWidgets::Batch::JobTreeView::resetFilter().
RowLocation MantidQt::MantidWidgets::Batch::FilteredTreeModel::rowLocationAt | ( | QModelIndex const & | index | ) | const |
Definition at line 28 of file FilteredTreeModel.cpp.
References MantidQt::MantidWidgets::Batch::RowLocationAdapter::atIndex(), MantidQt::MantidWidgets::Batch::fromMainModel(), index, and m_rowLocation.
Referenced by filterAcceptsRow().
void MantidQt::MantidWidgets::Batch::FilteredTreeModel::setPredicate | ( | std::unique_ptr< RowPredicate > | predicate | ) |
Definition at line 23 of file FilteredTreeModel.cpp.
References m_predicate.
Referenced by MantidQt::MantidWidgets::Batch::JobTreeView::filterRowsBy().
|
private |
Definition at line 34 of file FilteredTreeModel.h.
Referenced by filterAcceptsRow(), isReset(), resetPredicate(), and setPredicate().
|
private |
Definition at line 35 of file FilteredTreeModel.h.
Referenced by rowLocationAt().