blob: 7c6e9f2502f28a665174c5389ee31e5918feb5e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef CARDFILTERMODEL_H
#define CARDFILTERMODEL_H
#include <QSortFilterProxyModel>
class CardFilterModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
CardFilterModel( QObject* parent );
void addFilterRow( int aRow );
void removeFilterRow( int aRow );
protected:
bool filterAcceptsRow( int source_row, const QModelIndex& source_parent ) const;
private:
QList<int> m_filterRows;
};
#endif // CARDFILTERMODEL_H
|