Changeset View
Changeset View
Standalone View
Standalone View
src/qt/receiverequestdialog.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
Lint: Code style violation: '/Users/shammah/repos/bitcoin-abc/src/qt/receiverequestdialog.cpp' has code style errors. | |||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "receiverequestdialog.h" | #include "receiverequestdialog.h" | ||||
#include "ui_receiverequestdialog.h" | #include "ui_receiverequestdialog.h" | ||||
#include "bitcoinunits.h" | #include "bitcoinunits.h" | ||||
#include "guiconstants.h" | #include "guiconstants.h" | ||||
▲ Show 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | void ReceiveRequestDialog::update() { | ||||
ui->btnSaveAs->setEnabled(false); | ui->btnSaveAs->setEnabled(false); | ||||
QString html; | QString html; | ||||
html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; | html += "<html><font face='verdana, arial, helvetica, sans-serif'>"; | ||||
html += "<b>" + tr("Payment information") + "</b><br>"; | html += "<b>" + tr("Payment information") + "</b><br>"; | ||||
html += "<b>" + tr("URI") + "</b>: "; | html += "<b>" + tr("URI") + "</b>: "; | ||||
html += "<a href=\"" + uri + "\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; | html += "<a href=\"" + uri + "\">" + GUIUtil::HtmlEscape(uri) + "</a><br>"; | ||||
html += "<b>" + tr("Address") + "</b>: " + | html += "<b>" + tr("Address") + "</b>: " + | ||||
GUIUtil::HtmlEscape(info.address) + "<br>"; | GUIUtil::HtmlEscape(info.address) + "<br>"; | ||||
if (info.amount) | if (info.amount != 0) | ||||
html += "<b>" + tr("Amount") + "</b>: " + | html += "<b>" + tr("Amount") + "</b>: " + | ||||
BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), | BitcoinUnits::formatHtmlWithUnit(model->getDisplayUnit(), | ||||
info.amount) + | info.amount) + | ||||
"<br>"; | "<br>"; | ||||
if (!info.label.isEmpty()) | if (!info.label.isEmpty()) | ||||
html += "<b>" + tr("Label") + "</b>: " + | html += "<b>" + tr("Label") + "</b>: " + | ||||
GUIUtil::HtmlEscape(info.label) + "<br>"; | GUIUtil::HtmlEscape(info.label) + "<br>"; | ||||
if (!info.message.isEmpty()) | if (!info.message.isEmpty()) | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |
'/Users/shammah/repos/bitcoin-abc/src/qt/receiverequestdialog.cpp' has code style errors.