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

Method coinControlChangeChecked

src/qt/sendcoinsdialog.cpp:973–986  ·  view source on GitHub ↗

Coin Control: checkbox custom change address

Source from the content-addressed store, hash-verified

971
972// Coin Control: checkbox custom change address
973void SendCoinsDialog::coinControlChangeChecked(int state)
974{
975 if (state == Qt::Unchecked)
976 {
977 // ELEMENTS: it's a map now, should be initialized automatically
978 //m_coin_control->destChange = CNoDestination();
979 ui->labelCoinControlChangeLabel->clear();
980 }
981 else
982 // use this to re-validate an already entered address
983 coinControlChangeEdited(ui->lineEditCoinControlChange->text());
984
985 ui->lineEditCoinControlChange->setEnabled((state == Qt::Checked));
986}
987
988// Coin Control: custom change address changed
989void SendCoinsDialog::coinControlChangeEdited(const QString& text)

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected