mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
gui: disable font antialiasing for QR image address
More info available here: https://doc.qt.io/qt-5/qfont.html#StyleStrategy-enum
This commit is contained in:
@@ -71,6 +71,7 @@ bool QRImageWidget::setQR(const QString& data, const QString& text)
|
|||||||
|
|
||||||
if (!text.isEmpty()) {
|
if (!text.isEmpty()) {
|
||||||
QFont font = GUIUtil::fixedPitchFont();
|
QFont font = GUIUtil::fixedPitchFont();
|
||||||
|
font.setStyleStrategy(QFont::NoAntialias);
|
||||||
QRect paddedRect = qrAddrImage.rect();
|
QRect paddedRect = qrAddrImage.rect();
|
||||||
|
|
||||||
// calculate ideal font size
|
// calculate ideal font size
|
||||||
|
|||||||
Reference in New Issue
Block a user