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;
61 #endif // BITCOIN_QT_TRANSACTIONFILTERPROXY_H std::optional< QDateTime > dateTo
void setTypeFilter(quint32 modes)
static quint32 TYPE(int type)
int64_t CAmount
Amount in satoshis (Can be negative)
std::optional< QDateTime > dateFrom
WatchOnlyFilter watchOnlyFilter
TransactionFilterProxy(QObject *parent=nullptr)
void setWatchOnlyFilter(WatchOnlyFilter filter)
void setMinAmount(const CAmount &minimum)
void setShowInactive(bool showInactive)
Set whether to show conflicted transactions.
Filter the transaction list according to pre-specified rules.
static const quint32 ALL_TYPES
Type filter bit field (all types)
void setSearchString(const QString &)
void setDateRange(const std::optional< QDateTime > &from, const std::optional< QDateTime > &to)
Filter transactions between date range.
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override