00001 #ifndef ACCOUNTSTABLEFILTERMODEL_H
00002 #define ACCOUNTSTABLEFILTERMODEL_H
00003
00004 #include <QSortFilterProxyModel>
00005
00006 class AccountsTableFilterModel : public QSortFilterProxyModel
00007 {
00008 Q_OBJECT
00009
00010 public:
00011 AccountsTableFilterModel(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 // ACCOUNTSTABLEFILTERMODEL_H