5#ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H
6#define BITCOIN_QT_TRANSACTIONFILTERPROXY_H
11#include <QSortFilterProxyModel>
35 static quint32
TYPE(
int type) {
return 1 << type; }
43 void setDateRange(
const QDateTime &from,
const QDateTime &to);
62 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
66 const QModelIndex &source_parent)
const override;
Filter the transaction list according to pre-specified rules.
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)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
WatchOnlyFilter watchOnlyFilter
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
static const quint32 ALL_TYPES
Type filter bit field (all types).
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 setSearchString(const QString &)
void setMinAmount(const Amount minimum)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setTypeFilter(quint32 modes)
TransactionFilterProxy(QObject *parent=nullptr)