CycloBranch
cSpectrumDetailProxyModel Class Reference

A table proxy model. More...

#include <cSpectrumDetailProxyModel.h>

Inheritance diagram for cSpectrumDetailProxyModel:

Public Member Functions

 cSpectrumDetailProxyModel (QObject *parent=0)
 The constructor. More...
 
void setFlags (bool hidematched, bool hideunmatched, bool hidescrambled, bool hideionseries, bool hideneutralloss, bool hiderotations, bool hidetrotations)
 Set the flags for filtering. More...
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE
 Reimplementation of filterAcceptsRow. More...
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
 Reimplementation of lessThan. More...
 

Detailed Description

A table proxy model.

Constructor & Destructor Documentation

◆ cSpectrumDetailProxyModel()

cSpectrumDetailProxyModel::cSpectrumDetailProxyModel ( QObject *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ filterAcceptsRow()

bool cSpectrumDetailProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protected

Reimplementation of filterAcceptsRow.

Parameters
sourceRowint
sourceParentQModelIndex
Return values
boolbool

◆ lessThan()

bool cSpectrumDetailProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protected

Reimplementation of lessThan.

Parameters
leftQModelIndex
rightQModelIndex
Return values
boolbool

◆ setFlags()

void cSpectrumDetailProxyModel::setFlags ( bool  hidematched,
bool  hideunmatched,
bool  hidescrambled,
bool  hideionseries,
bool  hideneutralloss,
bool  hiderotations,
bool  hidetrotations 
)

Set the flags for filtering.

Parameters
hidematchedhide matched peaks
hideunmatchedhide unmatched peaks
hidescrambledhide scrambled peaks
hideionserieshide ion series
hideneutrallosshide neutral losses
hiderotationshide rotations of a cyclic peptide or branch-cyclic peptide or cyclic polyketide
hidetrotationshide trotations of a branched or branch-cyclic peptide

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