GammaRay API Documentation  2.7.0
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

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

Constructor.

Parameters
parentis the parent object for this instance.

Member Function Documentation

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

Klarälvdalens Datakonsult AB (KDAB)
"The Qt Experts"
https://www.kdab.com/
GammaRay
Qt-application inspection and manipulation tool
https://www.kdab.com/gammaray/