Fix botched patch

wilder-portage
Jacopo De Simoi 4 years ago
parent d4add2a82c
commit 0a20610943
  1. 9
      src/folder/entitycollectionorderproxymodel.cpp
  2. 3
      src/folder/entitycollectionorderproxymodel.h

@ -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());
}

@ -37,8 +37,6 @@ public:
Q_REQUIRED_RESULT bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
bool filterAcceptsRow(int source_row, const QModelIndex &parent) const override;
void setManualSortingActive(bool active);
Q_REQUIRED_RESULT bool isManualSortingActive() const;
@ -58,4 +56,3 @@ private:
std::unique_ptr<EntityCollectionOrderProxyModelPrivate> const d;
};
}

Loading…
Cancel
Save