Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionfilterproxy.cpp
Show All 27 Lines | bool TransactionFilterProxy::filterAcceptsRow( | ||||
int type = index.data(TransactionTableModel::TypeRole).toInt(); | int type = index.data(TransactionTableModel::TypeRole).toInt(); | ||||
QDateTime datetime = | QDateTime datetime = | ||||
index.data(TransactionTableModel::DateRole).toDateTime(); | index.data(TransactionTableModel::DateRole).toDateTime(); | ||||
bool involvesWatchAddress = | bool involvesWatchAddress = | ||||
index.data(TransactionTableModel::WatchonlyRole).toBool(); | index.data(TransactionTableModel::WatchonlyRole).toBool(); | ||||
QString address = index.data(TransactionTableModel::AddressRole).toString(); | QString address = index.data(TransactionTableModel::AddressRole).toString(); | ||||
QString label = index.data(TransactionTableModel::LabelRole).toString(); | QString label = index.data(TransactionTableModel::LabelRole).toString(); | ||||
qint64 amount = | Amount amount( | ||||
llabs(index.data(TransactionTableModel::AmountRole).toLongLong()); | llabs(index.data(TransactionTableModel::AmountRole).toLongLong())); | ||||
int status = index.data(TransactionTableModel::StatusRole).toInt(); | int status = index.data(TransactionTableModel::StatusRole).toInt(); | ||||
if (!showInactive && status == TransactionStatus::Conflicted) return false; | if (!showInactive && status == TransactionStatus::Conflicted) return false; | ||||
if (!(TYPE(type) & typeFilter)) return false; | if (!(TYPE(type) & typeFilter)) return false; | ||||
if (involvesWatchAddress && watchOnlyFilter == WatchOnlyFilter_No) | if (involvesWatchAddress && watchOnlyFilter == WatchOnlyFilter_No) | ||||
return false; | return false; | ||||
if (!involvesWatchAddress && watchOnlyFilter == WatchOnlyFilter_Yes) | if (!involvesWatchAddress && watchOnlyFilter == WatchOnlyFilter_Yes) | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |