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

Method clear

src/qt/sendcoinsentry.cpp:100–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void SendCoinsEntry::clear()
101{
102 // clear UI elements for normal payment
103 ui->payTo->clear();
104 ui->addAsLabel->clear();
105 ui->payAmount->clear();
106 if (model && model->getOptionsModel()) {
107 ui->checkboxSubtractFeeFromAmount->setChecked(model->getOptionsModel()->getSubFeeFromAmount());
108 }
109 ui->messageTextLabel->clear();
110 ui->messageTextLabel->hide();
111 ui->messageLabel->hide();
112 // clear UI elements for unauthenticated payment request
113 ui->payTo_is->clear();
114 ui->memoTextLabel_is->clear();
115 ui->payAmount_is->clear();
116 // clear UI elements for authenticated payment request
117 ui->payTo_s->clear();
118 ui->memoTextLabel_s->clear();
119 ui->payAmount_s->clear();
120
121 // update the display unit, to not use the default ("BTC")
122 updateAssetTypes();
123 updateDisplayUnit();
124}
125
126void SendCoinsEntry::payAmountChangedInternal()
127{

Callers 1

setValueMethod · 0.45

Calls 2

getSubFeeFromAmountMethod · 0.80
getOptionsModelMethod · 0.45

Tested by

no test coverage detected