21 QSortFilterProxyModel(parent),
25 typeFilter(ALL_TYPES),
26 watchOnlyFilter(WatchOnlyFilter_All),
35 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
53 if(datetime < dateFrom || datetime >
dateTo)
55 if (!address.contains(
addrPrefix, Qt::CaseInsensitive) && !label.contains(
addrPrefix, Qt::CaseInsensitive))
109 return std::min(QSortFilterProxyModel::rowCount(parent),
limitRows);
113 return QSortFilterProxyModel::rowCount(parent);
Transaction status (TransactionRecord::Status)
void setTypeFilter(quint32 modes)
TransactionFilterProxy(QObject *parent=0)
void setAddressPrefix(const QString &addrPrefix)
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)
WatchOnlyFilter watchOnlyFilter
void setMinAmount(qint64 minimum)
Date and time this transaction was created.
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.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Net amount of transaction.
Conflicts with other transaction or mempool.
Label of address related to transaction.
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const