diff --git a/src/folder/entitycollectionorderproxymodel.cpp b/src/folder/entitycollectionorderproxymodel.cpp index bbcb6cd..e292eef 100644 --- a/src/folder/entitycollectionorderproxymodel.cpp +++ b/src/folder/entitycollectionorderproxymodel.cpp @@ -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()); -} diff --git a/src/folder/entitycollectionorderproxymodel.h b/src/folder/entitycollectionorderproxymodel.h index 6d8e0e8..9415ea3 100644 --- a/src/folder/entitycollectionorderproxymodel.h +++ b/src/folder/entitycollectionorderproxymodel.h @@ -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 const d; }; } -