| 209 | } |
| 210 | |
| 211 | void 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 | |
| 228 | void SendCoinsEntry::setAddress(const QString &address) |
| 229 | { |
no test coverage detected