GammaRay API Documentation  3.1.1
Public Member Functions | Protected Member Functions | List of all members
GammaRay::ObjectTypeFilterProxyModel< T1, T2 > Class Template Reference

A templated generic ObjectFilterProxyModelBase for some data type. More...

#include <objecttypefilterproxymodel.h>

Inheritance diagram for GammaRay::ObjectTypeFilterProxyModel< T1, T2 >:
GammaRay::ObjectFilterProxyModelBase

Public Member Functions

 ObjectTypeFilterProxyModel (QObject *parent=nullptr)
 
- Public Member Functions inherited from GammaRay::ObjectFilterProxyModelBase
 ObjectFilterProxyModelBase (QObject *parent=nullptr)
 
QMap< int, QVariant > itemData (const QModelIndex &index) const override
 

Protected Member Functions

bool filterAcceptsObject (QObject *object) const override
 
- Protected Member Functions inherited from GammaRay::ObjectFilterProxyModelBase
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 

Detailed Description

template<typename T1, typename T2 = T1>
class GammaRay::ObjectTypeFilterProxyModel< T1, T2 >

A templated generic ObjectFilterProxyModelBase for some data type.

Constructor & Destructor Documentation

◆ ObjectTypeFilterProxyModel()

template<typename T1 , typename T2 = T1>
GammaRay::ObjectTypeFilterProxyModel< T1, T2 >::ObjectTypeFilterProxyModel ( QObject *  parent = nullptr)
inlineexplicit

Constructor.

Parameters
parentis the parent object for this instance.

Member Function Documentation

◆ filterAcceptsObject()

template<typename T1 , typename T2 = T1>
bool GammaRay::ObjectTypeFilterProxyModel< T1, T2 >::filterAcceptsObject ( QObject *  object) const
inlineoverrideprotectedvirtual

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.

Implements GammaRay::ObjectFilterProxyModelBase.


© 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