v29.4-roots.1 · Commit 5: [PATCH 05/13] product: establish Roots identity and Qt experience
src/qt/receiverequestdialog.cpp
Before: src/qt/receiverequestdialog.cpp · After: src/qt/receiverequestdialog.cpp
File metadata
index a5ee6583e00c02704b68cf4c806e8d33507bdd3f..7f15178f6862729dfb00f4449356a4fb218f8e45 100644
Download original patch · Release notes
Diff rows 1–13 of 13. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/qt/receiverequestdialog.cpp
CHANGED
|
@@ -47,8 +47,12 @@ void ReceiveRequestDialog::setInfo(const SendCoinsRecipient &_info)
|
|
|
47
47
|
QString uri = GUIUtil::formatBitcoinURI(info);
|
|
48
48
|
|
|
49
49
|
#ifdef USE_QRCODE
|
|
50
|
-
if (ui->qr_code->setQR(uri, info.address)) {
|
|
50
|
+
disconnect(m_font_for_money_connection);
|
|
51
|
+
if (ui->qr_code->setQR(uri, info.address, model->getOptionsModel()->getFontForMoney())) {
|
|
51
52
|
connect(ui->btnSaveAs, &QPushButton::clicked, ui->qr_code, &QRImageWidget::saveImage);
|
|
53
|
+
m_font_for_money_connection = connect(model->getOptionsModel(), &OptionsModel::fontForMoneyChanged, this, [this, uri] {
|
|
54
|
+
ui->qr_code->setQR(uri, info.address, model->getOptionsModel()->getFontForMoney());
|
|
55
|
+
});
|
|
52
56
|
} else {
|
|
53
57
|
ui->btnSaveAs->setEnabled(false);
|
|
54
58
|
}
|