16 QDateTime::fromTime_t(0xFFFFFFFF);
19 : QSortFilterProxyModel(parent), dateFrom(MIN_DATE), dateTo(MAX_DATE),
20 m_search_string(), typeFilter(ALL_TYPES),
21 watchOnlyFilter(WatchOnlyFilter_All), minAmount(), limitRows(-1),
25 int sourceRow,
const QModelIndex &sourceParent)
const {
26 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
38 bool involvesWatchAddress =
49 if (datetime < dateFrom || datetime >
dateTo) {
74 const QDateTime &to) {
114 return std::min(QSortFilterProxyModel::rowCount(parent),
limitRows);
116 return QSortFilterProxyModel::rowCount(parent);
Transaction status (TransactionRecord::Status)
void setTypeFilter(quint32 modes)
static constexpr Amount SATOSHI
static quint32 TYPE(int type)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past).
static const QDateTime MAX_DATE
Last date that can be represented (far in the future).
void setDateRange(const QDateTime &from, const QDateTime &to)
void setMinAmount(const Amount minimum)
WatchOnlyFilter watchOnlyFilter
TransactionFilterProxy(QObject *parent=nullptr)
Date and time this transaction was created.
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void setWatchOnlyFilter(WatchOnlyFilter filter)
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
void setShowInactive(bool showInactive)
Set whether to show conflicted transactions.
Net amount of transaction.
Conflicts with other transaction or mempool.
Label of address related to transaction.
void setSearchString(const QString &)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override