7#ifndef _CSPECTRUMDETAILPROXYMODEL_H
8#define _CSPECTRUMDETAILPROXYMODEL_H
12#include <QSortFilterProxyModel>
13#include <QStandardItemModel>
25 bool hidematched, hideunmatched, hidescrambled, hideionseries, hideneutralloss, hiderotations, hidetrotations;
47 void setFlags(
bool hidematched,
bool hideunmatched,
bool hidescrambled,
bool hideionseries,
bool hideneutralloss,
bool hiderotations,
bool hidetrotations);
59 bool filterAcceptsRow(
int sourceRow,
const QModelIndex &sourceParent)
const Q_DECL_OVERRIDE;
68 bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
const Q_DECL_OVERRIDE;
A table proxy model.
Definition: cSpectrumDetailProxyModel.h:19
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
Reimplementation of lessThan.
Definition: cSpectrumDetailProxyModel.cpp:62
cSpectrumDetailProxyModel(QObject *parent=0)
The constructor.
Definition: cSpectrumDetailProxyModel.cpp:4
void setFlags(bool hidematched, bool hideunmatched, bool hidescrambled, bool hideionseries, bool hideneutralloss, bool hiderotations, bool hidetrotations)
Set the flags for filtering.
Definition: cSpectrumDetailProxyModel.cpp:15
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE
Reimplementation of filterAcceptsRow.
Definition: cSpectrumDetailProxyModel.cpp:26