2 #ifndef __libquark_gui_BasicFilterTreeModel_hxx 3 #define __libquark_gui_BasicFilterTreeModel_hxx 5 #include <QSortFilterProxyModel> 24 template<
class T,
class IS = QDataStream,
class OS = QDataStream>
37 {
return(_sourceModel); }
43 QObject *parent = NULL);
78 const QVariant &value2)
const;
82 virtual bool filterAcceptsRow(
int sourceRow,
83 const QModelIndex &sourceParent)
const;
84 virtual bool filterAcceptsColumn(
int sourceColumn,
85 const QModelIndex &sourceParent)
const;
86 virtual bool lessThan(
const QModelIndex &left,
const QModelIndex &right)
94 #include <quark/BasicFilterTreeModelImpl.h++> 99 #endif // __libquark_gui_BasicFilterTreeModel_hxx virtual ~BasicFilterTreeModel()
Destructor.
Definition: BasicTreeModel.h++:22
virtual bool fieldLessThan(int field, const QVariant &value1, const QVariant &value2) const
Compares the values of a given field of two items in the model, for the purpose of sorting...
An abstract subclass of QSortFilterProxyModel for sorting and filtering of AbstractTreeModels.
Definition: BasicFilterTreeModel.h++:25
BasicTreeModel< T, IS, OS > * sourceModel() const
Returns this filter model's source model.
Definition: BasicFilterTreeModel.h++:36
virtual bool filterAcceptsField(int field) const
Called to test whether a given field in the model is accepted by this filter.
T * getItemForIndex(const QModelIndex &index) const
Returns the filtered item at the given index in this model.
virtual bool filterAcceptsItem(const T &item) const
Called to test whether a given item in the model is accepted by this filter.
Definition: BarChartView.h++:6
BasicFilterTreeModel(BasicTreeModel< T, IS, OS > *sourceModel, QObject *parent=NULL)
Constructs a new BasicFilterTreeModel with the given source model.