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

A KRecursiveFilterProxyModel for ObjectIds. More...

#include <objectidfilterproxymodel.h>

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

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 acceptRow (int source_row, const QModelIndex &source_parent) const override
 
bool filterAcceptsObjectId (const GammaRay::ObjectId &id) const
 

Detailed Description

A KRecursiveFilterProxyModel 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

◆ acceptRow()

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

◆ 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.

© 2010-2021 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 on Tue Dec 7 2021 02:34:37 for GammaRay API Documentation by doxygen 1.8.17