GammaRay API Documentation  3.2.0
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:
GammaRay::ObjectTypeFilterProxyModel< T1, T2 >

Public Member Functions

 ObjectFilterProxyModelBase (QObject *parent=nullptr)
 
QMap< int, QVariant > itemData (const QModelIndex &index) const override
 

Protected Member Functions

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

Detailed Description

A QSortFilterProxyModel for generic Objects.

Constructor & Destructor Documentation

◆ ObjectFilterProxyModelBase()

GammaRay::ObjectFilterProxyModelBase::ObjectFilterProxyModelBase ( QObject *  parent = nullptr)
explicit

Constructor.

Parameters
parentis the parent object for this instance.

Member Function Documentation

◆ filterAcceptsObject()

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< T1, T2 >.

◆ filterAcceptsRow()

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

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.

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
GammaRay Qt-application inspection and manipulation tool
https://www.kdab.com/development-resources/qt-tools/gammaray/
Generated by doxygen 1.9.1