14 return value > 0 ? value : -value;
18 QSortFilterProxyModel(parent),
23 typeFilter(ALL_TYPES),
74 return QSortFilterProxyModel::rowCount(parent);
80 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
91 if(datetime < dateFrom || datetime >
dateTo)
93 if (!address.contains(
addrPrefix, Qt::CaseInsensitive))
97 if(!
name.isEmpty() &&
name != tokenName)
114 return amountLeft < amountRight;
116 return QSortFilterProxyModel::lessThan(left, right);
Date and time this transaction was created.
static quint32 TYPE(int type)
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
void setTypeFilter(quint32 modes)
TokenFilterProxy(QObject *parent=0)
void setName(const QString _name)
void setDateRange(const QDateTime &from, const QDateTime &to)
int rowCount(const QModelIndex &parent=QModelIndex()) const
void setAddressPrefix(const QString &addrPrefix)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
Net amount of transaction.
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
void setMinAmount(const int256_t &minimum)
int256_t abs_int256(const int256_t &value)
PlatformStyle::TableColorType type
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
struct evm_uint160be address(struct evm_env *env)