Port KRecursiveFilterProxyModel to QSortFilterProxyModel

Authored by ahmadsamir on Dec 1 2019, 5:47 PM.

Description

Port KRecursiveFilterProxyModel to QSortFilterProxyModel

Summary:
Add QT_VERSION checks so that the code can still be built with Qt versions
older than 5.10 (that's where QSortFilterProxyModel gained recursive
filtering capabilities).

Also add some defines to ease porting in the future; add a dud
setRecursiveFilteringEnabled() method to keep backward compatibility.
For details see the code the review.

Test Plan:
make && ctest; all unit tests pass except qsqlcipher-test, but it fails
on master too.

Reviewers: tbaumgart

Reviewed By: tbaumgart

Subscribers: davidre

Maniphest Tasks: T12269

Differential Revision: https://phabricator.kde.org/D26579

Details

Committed
ahmadsamirJan 25 2020, 8:51 PM
Reviewer
tbaumgart
Differential Revision
D26579: Port KRecursiveFilterProxyModel to QSortFilterProxyModel
Parents
R261:1f23553cebab: Show all required widgets
Branches
Unknown
Tags
Unknown