6 #ifndef PIVX_QT_TRANSACTIONFILTERPROXY_H
7 #define PIVX_QT_TRANSACTIONFILTERPROXY_H
12 #include <QSortFilterProxyModel>
31 static quint32
TYPE(
int type) {
return 1 << type; }
39 void setDateRange(
const QDateTime& from,
const QDateTime& to);
61 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
62 static bool isOrphan(
const int status,
const int type);
65 bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const;
int64_t CAmount
Amount in PIV (Can be negative)
Filter the transaction list according to pre-specified rules.
void setMinAmount(const CAmount &minimum)
static const quint32 COMMON_TYPES
Type filter bit field (all types but Obfuscation-SPAM ...
void setHideOrphans(bool fHide)
Set whether to hide orphan stakes.
void setLimit(int limit)
Set maximum number of rows returned, -1 if unlimited.
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
void setWatchOnlyFilter(WatchOnlyFilter filter)
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
WatchOnlyFilter watchOnlyFilter
static const quint32 ALL_TYPES
Type filter bit field (all types)
int rowCount(const QModelIndex &parent=QModelIndex()) const
TransactionFilterProxy(QObject *parent=0)
static quint32 TYPE(int type)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
void setShowInactive(bool showInactive)
Set whether to show conflicted transactions.
static bool isOrphan(const int status, const int type)
void setDateRange(const QDateTime &from, const QDateTime &to)
void setTypeFilter(quint32 modes)