MCPcopy Create free account
hub / github.com/ElementsProject/elements / payAmountChangedInternal

Method payAmountChangedInternal

src/qt/sendcoinsentry.cpp:126–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void SendCoinsEntry::payAmountChangedInternal()
127{
128 const auto send_assets = ui->payAmount->fullValue();
129 if (send_assets.first == Params().GetConsensus().pegged_asset) {
130 ui->checkboxSubtractFeeFromAmount->setEnabled(true);
131 } else {
132 ui->checkboxSubtractFeeFromAmount->setCheckState(Qt::Unchecked);
133 ui->checkboxSubtractFeeFromAmount->setEnabled(false);
134 }
135}
136
137void SendCoinsEntry::checkSubtractFeeFromAmount()
138{

Callers

nothing calls this directly

Calls 3

fullValueMethod · 0.80
ParamsClass · 0.50
setEnabledMethod · 0.45

Tested by

no test coverage detected