blob: 50ac75db48140960d46319f550cce038e49b0592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "CardFilterModel.h"
CardFilterModel::CardFilterModel( QObject* parent ):
QSortFilterProxyModel( parent )
{
}
void CardFilterModel::addFilterRow( int aRow )
{
if( m_filterRows.contains( aRow ) )
return;
m_filterRows << aRow;
}
void CardFilterModel::removeFilterRow( int aRow )
{
m_filterRows.removeOne( aRow );
}
bool CardFilterModel::filterAcceptsRow( int source_row, const QModelIndex& source_parent ) const
{
Q_UNUSED( source_parent );
return m_filterRows.contains( source_row );
}
|