15 QSortFilterProxyModel(parent),
17 typeFilter(ALL_TYPES),
18 watchOnlyFilter(WatchOnlyFilter_All),
27 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
110 return std::min(QSortFilterProxyModel::rowCount(parent),
limitRows);
114 return QSortFilterProxyModel::rowCount(parent);
int64_t CAmount
Amount in satoshis (Can be negative)
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.
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 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)
@ Conflicted
Conflicts with other transaction or mempool.
@ LabelRole
Label of address related to transaction.
@ TypeRole
Type of transaction.
@ StatusRole
Transaction status (TransactionRecord::Status)
@ DateRole
Date and time this transaction was created.
@ TxHashRole
Transaction hash.
@ AddressRole
Address of transaction.
@ WatchonlyRole
Watch-only boolean.
@ AmountRole
Net amount of transaction.