5#ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H
6#define BITCOIN_QT_TRANSACTIONFILTERPROXY_H
11#include <QSortFilterProxyModel>
26 static quint32
TYPE(
int type) {
return 1<<type; }
36 void setDateRange(
const std::optional<QDateTime>& from,
const std::optional<QDateTime>& to);
49 bool filterAcceptsRow(
int source_row,
const QModelIndex & source_parent)
const override;
int64_t CAmount
Amount in satoshis (Can be negative)
Filter the transaction list according to pre-specified rules.
std::optional< QDateTime > dateFrom
void setMinAmount(const CAmount &minimum)
void setDateRange(const std::optional< QDateTime > &from, const std::optional< QDateTime > &to)
Filter transactions between date range.
std::optional< QDateTime > dateTo
void setWatchOnlyFilter(WatchOnlyFilter filter)
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 setTypeFilter(quint32 modes)
TransactionFilterProxy(QObject *parent=nullptr)