Mention the new QSFPM::setRecursiveFiltering(true) which makes KRecursiveFilterProxyModel obsolete.

wilder
David Faure 9 years ago
parent fdbb655601
commit 11b36d24ac
  1. 5
      src/krecursivefilterproxymodel.h

@ -29,9 +29,12 @@ class KRecursiveFilterProxyModelPrivate;
/** /**
@brief Implements recursive filtering of models @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 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: For example, given a source model:
@verbatim @verbatim

Loading…
Cancel
Save