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

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)


parentis the parent object for this instance.

Member Function Documentation

◆ acceptRow()

bool GammaRay::ObjectIdsFilterProxyModel::acceptRow ( int  source_row,
const QModelIndex source_parent 
) const

Determines if the item in the specified row can be included in the model.

source_rowis a non-zero integer representing the row of the item.
source_parentis the parent QModelIndex for this model.
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

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

idis a ref to the ObjectId to test.
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"
GammaRay Qt-application inspection and manipulation tool
Generated on Wed Mar 15 2023 01:05:10 for GammaRay API Documentation by doxygen 1.8.20