IMO, you need something like:
void MySortFilterProxyModel::setWhitePlayerFilter( const QString& filter )
{
filterPlayerWhite = filter;
QModelIndex bottomRight
( index
( rowCount
() - 1, <column>
) );
emit dataChanged( topLeft, bottomRight );
}
void MySortFilterProxyModel::setWhitePlayerFilter( const QString& filter )
{
filterPlayerWhite = filter;
QModelIndex topLeft( index( 0, <column> ) );
QModelIndex bottomRight( index( rowCount() - 1, <column> ) );
emit dataChanged( topLeft, bottomRight );
}
To copy to clipboard, switch view to plain text mode
Bookmarks