GammaRay API Documentation  3.2.0
Public Member Functions | Protected Member Functions | List of all members
GammaRay::ObjectIdsFilterProxyModel Class Reference

A RecursiveFilterProxyModel for ObjectIds. More...

#include <objectidfilterproxymodel.h>

Inheritance diagram for GammaRay::ObjectIdsFilterProxyModel:

Public Member Functions

 ObjectIdsFilterProxyModel (QObject *parent=nullptr)
 
GammaRay::ObjectIds ids () const
 
void setIds (const GammaRay::ObjectIds &ids)
 
void sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override
 

Protected Member Functions

bool filterAcceptsObjectId (const GammaRay::ObjectId &id) const
 
bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 

Detailed Description

A RecursiveFilterProxyModel for ObjectIds.

Filter in and sort according to the objects list.

Constructor & Destructor Documentation

◆ ObjectIdsFilterProxyModel()

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

Constructor.

Parameters
parentis the parent object for this instance.

Member Function Documentation

◆ filterAcceptsObjectId()

bool GammaRay::ObjectIdsFilterProxyModel::filterAcceptsObjectId ( const GammaRay::ObjectId id) const
protected

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

Parameters
idis a ref to the ObjectId to test.
Returns
true if the ObjectId can be included in the model; false otherwise.

◆ filterAcceptsRow()

bool GammaRay::ObjectIdsFilterProxyModel::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