00001 #ifndef COSTCENTREFILTERMODEL_H
00002 #define COSTCENTREFILTERMODEL_H
00003
00004 #include <QSortFilterProxyModel>
00005
00006 class CostCentreFilterModel : public QSortFilterProxyModel
00007 {
00008 Q_OBJECT
00009
00010 public:
00011 CostCentreFilterModel(QObject *parent = 0);
00012
00013 protected:
00014 bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
00015 bool filterAcceptsColumn(int sourceColumn, const QModelIndex &sourceParent) const;
00016
00017 bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
00018 };
00019
00020 #endif // COSTCENTREFILTERMODEL_H