A RecursiveFilterProxyModel for ObjectIds.
More...
#include <objectidfilterproxymodel.h>
A RecursiveFilterProxyModel for ObjectIds.
Filter in and sort according to the objects list.
◆ ObjectIdsFilterProxyModel()
| GammaRay::ObjectIdsFilterProxyModel::ObjectIdsFilterProxyModel |
( |
QObject * | parent = nullptr | ) |
|
|
explicit |
Constructor.
- Parameters
-
| parent | is the parent object for this instance. |
◆ filterAcceptsObjectId()
| bool GammaRay::ObjectIdsFilterProxyModel::filterAcceptsObjectId |
( |
const GammaRay::ObjectId & | id | ) |
const |
|
protected |
Determines if the specified ObjectID can be included in the model.
- Parameters
-
- 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_row | is a non-zero integer representing the row of the item. |
| source_parent | is the parent QModelIndex for this model. |
- Returns
- true if the item in the row can be included in the model; otherwise returns false.