KSortFilterProxyModel

David Faure faure at kde.org
Sat Nov 28 15:09:42 GMT 2009


On Saturday 28 November 2009, David Faure wrote:
> On Friday 27 November 2009, Stephen Kelly wrote:
> > To avoid having a proxy model which does not update on source model
> > change and which will likely be replaced in 4.5, I think it would be best
> > to remove KSortFilterProxyModel from kdelibs4.4, and use
> >  KRecursiveFilterProxyModel in 4.5 after it has been tested.
> 
> If it's new in 4.4 and nothing uses it yet (you checked lxr, I presume?),

Oh wait. This is the same KSortFilterProxyModel as the one that konqueror
is using for its history treeview, so that the filtering lineedit works on 
child nodes (which contain the page titles).
Very useful indeed, don't remove it :-)
Could be renamed though, to get a more specific name.
KFilterChildrenProxyModel? sounds like the opposite of what it does, though. 
Maybe KMatchChildrenProxyModel?

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).




More information about the kde-core-devel mailing list