A QSortFilterProxyModel for generic Objects.
More...
#include <objecttypefilterproxymodel.h>
A QSortFilterProxyModel for generic Objects.
◆ ObjectFilterProxyModelBase()
GammaRay::ObjectFilterProxyModelBase::ObjectFilterProxyModelBase |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
Constructor.
- Parameters
-
parent | is the parent object for this instance. |
◆ filterAcceptsObject()
virtual bool GammaRay::ObjectFilterProxyModelBase::filterAcceptsObject |
( |
QObject * |
object | ) |
const |
|
protectedpure virtual |
Determines if the specified QObject can be included in the model.
- Parameters
-
object | is a pointer to the QObject to test. |
- Returns
- true if the QObject can be included in the model; false otherwise.
Implemented in GammaRay::ObjectTypeFilterProxyModel< T1, T2 >.
◆ filterAcceptsRow()
bool GammaRay::ObjectFilterProxyModelBase::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.