15 QSortFilterProxyModel(parent),
19 typeFilter(ALL_TYPES),
27 QModelIndex index = sourceModel()->index(sourceRow, 0, sourceParent);
37 if(datetime < dateFrom || datetime >
dateTo)
39 if (!address.contains(
addrPrefix, Qt::CaseInsensitive) && !label.contains(
addrPrefix, Qt::CaseInsensitive))
81 return std::min(QSortFilterProxyModel::rowCount(parent),
limitRows);
85 return QSortFilterProxyModel::rowCount(parent);
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)
void setMinAmount(qint64 minimum)
Date and time this transaction was created.
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
int rowCount(const QModelIndex &parent=QModelIndex()) const
Net amount of transaction.
Label of address related to transaction.
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const