39 #ifndef GAMMARAY_OBJECTTYPEFILTERPROXYMODEL_H
40 #define GAMMARAY_OBJECTTYPEFILTERPROXYMODEL_H
42 #include "gammaray_core_export.h"
45 #include <QSortFilterProxyModel>
70 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent)
const Q_DECL_OVERRIDE;
77 virtual bool filterAcceptsObject(QObject *
object)
const = 0;
99 return qobject_cast<T*>(object);
105 #endif // GAMMARAY_OBJECTTYPEFILTERPROXYMODEL_H
Definition: endpoint.h:42
Declares a template for an ObjectModelBase class.
bool filterAcceptsObject(QObject *object) const Q_DECL_OVERRIDE
Definition: objecttypefilterproxymodel.h:97
ObjectTypeFilterProxyModel(QObject *parent=0)
Definition: objecttypefilterproxymodel.h:91
A QSortFilterProxyModel for generic Objects.
Definition: objecttypefilterproxymodel.h:52
A templated generic ObjectFilterProxyModelBase for some data type.
Definition: objecttypefilterproxymodel.h:84