Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionview.cpp
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | |||||
void TransactionView::changedPrefix(const QString &prefix) { | void TransactionView::changedPrefix(const QString &prefix) { | ||||
if (!transactionProxyModel) return; | if (!transactionProxyModel) return; | ||||
transactionProxyModel->setAddressPrefix(prefix); | transactionProxyModel->setAddressPrefix(prefix); | ||||
} | } | ||||
void TransactionView::changedAmount(const QString &amount) { | void TransactionView::changedAmount(const QString &amount) { | ||||
if (!transactionProxyModel) return; | if (!transactionProxyModel) return; | ||||
CAmount amount_parsed = 0; | CAmount amount_parsed(0); | ||||
if (BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amount, | if (BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amount, | ||||
&amount_parsed)) { | &amount_parsed)) { | ||||
transactionProxyModel->setMinAmount(amount_parsed); | transactionProxyModel->setMinAmount(amount_parsed); | ||||
} else { | } else { | ||||
transactionProxyModel->setMinAmount(0); | transactionProxyModel->setMinAmount(0); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |