5 #ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H
6 #define BITCOIN_QT_TRANSACTIONFILTERPROXY_H
11 #include <QSortFilterProxyModel>
28 static quint32
TYPE(
int type) {
return 1<<type; }
37 void setDateRange(
const QDateTime &from,
const QDateTime &to);
52 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
55 bool filterAcceptsRow(
int source_row,
const QModelIndex & source_parent)
const;
int64_t CAmount
Amount in satoshis (Can be negative)
Filter the transaction list according to pre-specified rules.
void setMinAmount(const CAmount &minimum)
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
void setWatchOnlyFilter(WatchOnlyFilter filter)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
WatchOnlyFilter watchOnlyFilter
static const quint32 ALL_TYPES
Type filter bit field (all types)
int rowCount(const QModelIndex &parent=QModelIndex()) const
TransactionFilterProxy(QObject *parent=0)
static quint32 TYPE(int type)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
void setShowInactive(bool showInactive)
Set whether to show conflicted transactions.
void setAddressPrefix(const QString &addrPrefix)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setTypeFilter(quint32 modes)