|
|
|
|
@ -203,12 +203,3 @@ void EntityCollectionOrderProxyModel::setFolderMatcher(const HierarchicalFolderM |
|
|
|
|
d->matcher = matcher; |
|
|
|
|
invalidateFilter(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool EntityCollectionOrderProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const |
|
|
|
|
{ |
|
|
|
|
if (d->matcher.isNull()) { |
|
|
|
|
return EntityOrderProxyModel::filterAcceptsRow(sourceRow, sourceParent); |
|
|
|
|
} |
|
|
|
|
const QModelIndex sourceIndex = sourceModel()->index(sourceRow, filterKeyColumn(), sourceParent); |
|
|
|
|
return d->matcher.matches(sourceModel(), sourceIndex, filterRole()); |
|
|
|
|
} |
|
|
|
|
|