mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Only show most common transaction types by default
This commit is contained in:
parent
8223e0d34f
commit
8f505019e9
@ -21,7 +21,7 @@ TransactionFilterProxy::TransactionFilterProxy(QObject *parent) :
|
||||
dateFrom(MIN_DATE),
|
||||
dateTo(MAX_DATE),
|
||||
addrPrefix(),
|
||||
typeFilter(ALL_TYPES),
|
||||
typeFilter(COMMON_TYPES),
|
||||
minAmount(0),
|
||||
limitRows(-1),
|
||||
showInactive(true)
|
||||
|
@ -22,7 +22,9 @@ public:
|
||||
static const QDateTime MAX_DATE;
|
||||
/** Type filter bit field (all types) */
|
||||
static const quint32 ALL_TYPES = 0xFFFFFFFF;
|
||||
|
||||
/** Type filter bit field (all types but Darksend-SPAM) */
|
||||
static const quint32 COMMON_TYPES = 4223;
|
||||
|
||||
static quint32 TYPE(int type) { return 1<<type; }
|
||||
|
||||
void setDateRange(const QDateTime &from, const QDateTime &to);
|
||||
|
1
src/qt/transactionview.cpp
Executable file → Normal file
1
src/qt/transactionview.cpp
Executable file → Normal file
@ -73,6 +73,7 @@ TransactionView::TransactionView(QWidget *parent) :
|
||||
typeWidget->setFixedWidth(TYPE_COLUMN_WIDTH);
|
||||
#endif
|
||||
|
||||
typeWidget->addItem(tr("Most Common"), TransactionFilterProxy::COMMON_TYPES);
|
||||
typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
|
||||
typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) |
|
||||
TransactionFilterProxy::TYPE(TransactionRecord::RecvFromOther));
|
||||
|
Loading…
Reference in New Issue
Block a user