KXQTS::TreeSortFilter Class Reference

A sort & filter model for hierarchical item models. More...

#include <TreeSortFilter.h>

List of all members.

Public Member Functions

 TreeSortFilter (QObject *parent)

Protected Member Functions

virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const
virtual bool lessThan (const QModelIndex &left, const QModelIndex &right) const


Detailed Description

A sort & filter model for hierarchical item models.

Features:

TreeSortFilter.png

TreeSortFilter in action on a QTreeView.

Author:
Frans Englich <frans.englich@telia.com>

Definition at line 36 of file TreeSortFilter.h.


Constructor & Destructor Documentation

TreeSortFilter::TreeSortFilter ( QObject *  parent  ) 

Creates a TreeSortFilter.

Parameters:
parent the parent. Must not be null.

Definition at line 21 of file TreeSortFilter.cpp.


Member Function Documentation

bool TreeSortFilter::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const [protected, virtual]

Overriden to implement filtering.

Definition at line 68 of file TreeSortFilter.cpp.

bool TreeSortFilter::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const [protected, virtual]

Compares left and right. They are treated as QStrings.

Definition at line 26 of file TreeSortFilter.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1