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

Method setValue

src/qt/sendcoinsentry.cpp:211–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void SendCoinsEntry::setValue(const SendAssetsRecipient &value)
212{
213 recipient = value;
214 {
215 // message
216 ui->messageTextLabel->setText(recipient.message);
217 ui->messageTextLabel->setVisible(!recipient.message.isEmpty());
218 ui->messageLabel->setVisible(!recipient.message.isEmpty());
219
220 ui->addAsLabel->clear();
221 ui->payTo->setText(recipient.address); // this may set a label from addressbook
222 if (!recipient.label.isEmpty()) // if a label had been set from the addressbook, don't overwrite with an empty label
223 ui->addAsLabel->setText(recipient.label);
224 ui->payAmount->setFullValue(recipient.asset, recipient.asset_amount);
225 }
226}
227
228void SendCoinsEntry::setAddress(const QString &address)
229{

Callers 1

setAmountMethod · 0.45

Calls 3

setTextMethod · 0.80
setFullValueMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected