itom 1.3.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...

List of all members.

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:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends