5#ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H
6#define BITCOIN_QT_TRANSACTIONFILTERPROXY_H
11#include <QSortFilterProxyModel>
29 static quint32
TYPE(
int type) {
return 1 << type; }
41 const std::optional<QDateTime> &to);
60 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
64 const QModelIndex &source_parent)
const override;
Filter the transaction list according to pre-specified rules.
std::optional< QDateTime > dateFrom
void setDateRange(const std::optional< QDateTime > &from, const std::optional< QDateTime > &to)
Filter transactions between date range.
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
std::optional< QDateTime > dateTo
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)
void setShowInactive(bool showInactive)
Set whether to show conflicted transactions.
void setSearchString(const QString &)
void setMinAmount(const Amount minimum)
void setTypeFilter(quint32 modes)
TransactionFilterProxy(QObject *parent=nullptr)