itom  4.1.0
ito::LeafFilterProxyModel Class Reference

This class provides a special search function to the help model. The normal filtermodel hides nodes if they don't contain the searched term, even though the children contain it. More...

Inheritance diagram for ito::LeafFilterProxyModel:

Public Member Functions

 LeafFilterProxyModel (QObject *parent=0)
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
 
bool filterAcceptsRowItself (int source_row, const QModelIndex &source_parent) const
 
bool hasAcceptedChildren (int source_row, const QModelIndex &source_parent) const
 

Detailed Description

This class provides a special search function to the help model. The normal filtermodel hides nodes if they don't contain the searched term, even though the children contain it.

Example Searchtext = "Leaf1" NodeA +- Leaf1 +- NodeB

The standard model would hide the entire NodeA because NodeA != Leaf1

This Model here checks the children first and still shows the unmatching parent if a child matches the searched term.


The documentation for this class was generated from the following files: