GammaRay  2.2.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Public Member Functions | Protected Member Functions | List of all members
GammaRay::ObjectFilterProxyModelBase Class Referenceabstract

A QSortFilterProxyModel for generic Objects. More...

#include <objecttypefilterproxymodel.h>

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

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 Qt Experts"
http://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
http://www.kdab.com/kdab-products/gammaray/