Accept "bitcoin:" URL drops from browsers

This commit is contained in:
Wladimir J. van der Laan
2011-08-07 16:04:48 +02:00
parent 330c190958
commit db7f023417
8 changed files with 130 additions and 15 deletions

View File

@@ -102,7 +102,6 @@ bool SendCoinsEntry::validate()
}
}
if(!ui->payTo->hasAcceptableInput() ||
(model && !model->validateAddress(ui->payTo->text())))
{
@@ -133,3 +132,16 @@ QWidget *SendCoinsEntry::setupTabChain(QWidget *prev)
QWidget::setTabOrder(ui->deleteButton, ui->addAsLabel);
return ui->payAmount->setupTabChain(ui->addAsLabel);
}
void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
{
ui->payTo->setText(value.address);
ui->addAsLabel->setText(value.label);
ui->payAmount->setValue(value.amount);
}
bool SendCoinsEntry::isClear()
{
return ui->payTo->text().isEmpty();
}