1 #ifndef TRANSACTIONFILTERPROXY_H
2 #define TRANSACTIONFILTERPROXY_H
4 #include <QSortFilterProxyModel>
22 static quint32
TYPE(
int type) {
return 1<<type; }
24 void setDateRange(
const QDateTime &from,
const QDateTime &to);
35 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
38 bool filterAcceptsRow(
int source_row,
const QModelIndex & source_parent)
const;
49 #endif // TRANSACTIONFILTERPROXY_H
void setTypeFilter(quint32 modes)
TransactionFilterProxy(QObject *parent=0)
void setAddressPrefix(const QString &addrPrefix)
static quint32 TYPE(int type)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setMinAmount(qint64 minimum)
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Filter the transaction list according to pre-specified rules.
static const quint32 ALL_TYPES
Type filter bit field (all types)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const