GammaRay  1.3.0
 All Classes Namespaces Files Functions Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions
GammaRay::ObjectFilterProxyModelBase Class Reference

A QSortFilterProxyModel for generic Objects. More...

#include <objecttypefilterproxymodel.h>

Inheritance diagram for GammaRay::ObjectFilterProxyModelBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ObjectFilterProxyModelBase (QObject *parent=0)

Protected Member Functions

virtual bool filterAcceptsObject (QObject *object) const =0
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const

Detailed Description

A QSortFilterProxyModel for generic Objects.


Constructor & Destructor Documentation

GammaRay::ObjectFilterProxyModelBase::ObjectFilterProxyModelBase ( QObject *  parent = 0)
inlineexplicit

Constructor.

Parameters:
parentis the parent object for this instance.

Member Function Documentation

virtual bool GammaRay::ObjectFilterProxyModelBase::filterAcceptsObject ( QObject *  object) const
protectedpure virtual

Determines if the specified QObject can be included in the model.

Parameters:
objectis a pointer to the QObject to test.
Returns:
true if the QObject can be included in the model; false otherwise.

Implemented in GammaRay::ObjectTypeFilterProxyModel< T >.

bool GammaRay::ObjectFilterProxyModelBase::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
inlineprotected

Determines if the item in the specified row can be included in the model.

Parameters:
source_rowis a non-zero integer representing the row of the item.
source_parentis the parent QModelIndex for this model.
Returns:
true if the item in the row can be included in the model; otherwise returns false.

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

Klarälvdalens Datakonsult AB (KDAB)
"The Cross-Platform Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/