Bitcoin-Qt: translation fixes in sendcoins
- remove some unneeded translatable strings from sendcoinsentry.ui file and rename some elements for better readability - optimize string prorcessing in SendCoinsDialog::on_sendButton_clicked() - make all UI labels for secure payments plain text and move the settings to sendcoinsentry.ui file - remove unneeded button and default button definiton from warning message boxes - remove fixed font-size when sending coins to an address with label and use monospace font for addresses
This commit is contained in:
@@ -106,8 +106,8 @@ bool SendCoinsEntry::validate()
|
||||
if (!recipient.authenticatedMerchant.isEmpty())
|
||||
return retval;
|
||||
|
||||
if(!ui->payTo->hasAcceptableInput() ||
|
||||
(model && !model->validateAddress(ui->payTo->text())))
|
||||
if (!ui->payTo->hasAcceptableInput() ||
|
||||
(model && !model->validateAddress(ui->payTo->text())))
|
||||
{
|
||||
ui->payTo->setValid(false);
|
||||
retval = false;
|
||||
@@ -163,8 +163,7 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value)
|
||||
const payments::PaymentDetails& details = value.paymentRequest.getDetails();
|
||||
|
||||
ui->payTo_s->setText(value.authenticatedMerchant);
|
||||
ui->memo_s->setTextFormat(Qt::PlainText);
|
||||
ui->memo_s->setText(QString::fromStdString(details.memo()));
|
||||
ui->memoTextLabel_s->setText(QString::fromStdString(details.memo()));
|
||||
ui->payAmount_s->setValue(value.amount);
|
||||
setCurrentWidget(ui->SendCoinsSecure);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user