Skip to content
Permalink
Browse files

[QT] fix thin space word wrap line brake issue

The thin space QT html hack results in cut-off chars/nums after a line break.

Avoid word wrap line breaks by using a smaller font and a line break before each alternative value)

Rebased-From: 24cb7c7
Github-Pull: #6694
  • Loading branch information...
jonasschnelli authored and laanwj committed Sep 18, 2015
1 parent 649f5d9 commit 834e299564cb2b6fad7d4ea76d03a2c15fc80561
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/qt/sendcoinsdialog.cpp
@@ -310,9 +310,9 @@ void SendCoinsDialog::on_sendButton_clicked()
if(u != model->getOptionsModel()->getDisplayUnit())
alternativeUnits.append(BitcoinUnits::formatHtmlWithUnit(u, totalAmount));
}
questionString.append(tr("Total Amount %1 (= %2)")
questionString.append(tr("Total Amount %1<span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>")
.arg(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), totalAmount))
.arg(alternativeUnits.join(" " + tr("or") + " ")));
.arg(alternativeUnits.join(" " + tr("or") + "<br />")));

QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm send coins"),
questionString.arg(formatted.join("<br />")),

0 comments on commit 834e299

Please sign in to comment.
You can’t perform that action at this time.