From 11b36d24ac856db52bb12a7a0ff0fbd778bccf69 Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 24 Mar 2017 15:08:43 +0100 Subject: [PATCH] Mention the new QSFPM::setRecursiveFiltering(true) which makes KRecursiveFilterProxyModel obsolete. --- src/krecursivefilterproxymodel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/krecursivefilterproxymodel.h b/src/krecursivefilterproxymodel.h index fe660ba..5f9e415 100644 --- a/src/krecursivefilterproxymodel.h +++ b/src/krecursivefilterproxymodel.h @@ -29,9 +29,12 @@ class KRecursiveFilterProxyModelPrivate; /** @brief Implements recursive filtering of models - QSortFilterProxyModel does not recurse when invoking a filtering stage, so that + Until Qt 5.10, QSortFilterProxyModel did not recurse when invoking a filtering stage, so that if a particular row is filtered out, its children are not even checked to see if they match the filter. + If you can depend on Qt >= 5.10, then just use QSortFilterProxyModel::setRecursiveFiltering(true), + and you don't need to use KRecursiveFilterProxyModel. + For example, given a source model: @verbatim