20 QSortFilterProxyModel(parent),
24 typeFilter(ALL_TYPES),
25 watchOnlyFilter(WatchOnlyFilter_All),
34 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
52 if(datetime < dateFrom || datetime >
dateTo)
54 if (!address.contains(
addrPrefix, Qt::CaseInsensitive) && !label.contains(
addrPrefix, Qt::CaseInsensitive))
108 return std::min(QSortFilterProxyModel::rowCount(parent),
limitRows);
112 return QSortFilterProxyModel::rowCount(parent);
int64_t CAmount
Amount in satoshis (Can be negative)
void setMinAmount(const CAmount &minimum)
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)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
WatchOnlyFilter watchOnlyFilter
int rowCount(const QModelIndex &parent=QModelIndex()) const
TransactionFilterProxy(QObject *parent=0)
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 setAddressPrefix(const QString &addrPrefix)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setTypeFilter(quint32 modes)
@ 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.
@ AddressRole
Address of transaction.
@ WatchonlyRole
Watch-only boolean.
@ AmountRole
Net amount of transaction.