VPTissue Reference Manual
SimPT_Shell::StepFilterProxyModel Class Reference

Custom proxy model to filter a QStandardModel with file names with time steps. More...

#include <StepFilterProxyModel.h>

Inheritance diagram for SimPT_Shell::StepFilterProxyModel:
Inheritance graph
Collaboration diagram for SimPT_Shell::StepFilterProxyModel:
Collaboration graph

Public Slots

void SetStepRanges (const QString &ranges)
 Sets the ranges of the accepted steps of the first column. More...
 

Public Member Functions

 StepFilterProxyModel (QObject *parent=nullptr)
 Constructor.
 
virtual ~StepFilterProxyModel ()
 Destructor.
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
 

Detailed Description

Custom proxy model to filter a QStandardModel with file names with time steps.

The source model is supposed to have a first column with an int as data (for the Qt::DisplayData role)

Definition at line 32 of file StepFilterProxyModel.h.

Member Function Documentation

void SimPT_Shell::StepFilterProxyModel::SetStepRanges ( const QString &  ranges)
slot

Sets the ranges of the accepted steps of the first column.

Parameters
rangesThe ranges-string, complying to the StepSelection::m_repeated_regex regex

Definition at line 35 of file StepFilterProxyModel.cpp.

References SimPT_Shell::StepSelection::g_repeated_regex, and SimPT_Shell::StepSelection::SetSelectionText().

Here is the call graph for this function:


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