diff options
author | fanquake <fanquake@gmail.com> | 2019-10-25 13:18:38 -0400 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-10-25 13:20:32 -0400 |
commit | e156b9d8b974f57253306b693a03aa80322ebc6c (patch) | |
tree | 8e9e9390c6c1e3afe9821db94b1ddecfabf8c8cf /src | |
parent | 693e40090ae7af52585ce1a6136a4bd56318fac7 (diff) | |
download | bitcoin-e156b9d8b974f57253306b693a03aa80322ebc6c.tar.xz |
gui: disable font antialiasing for QR image address
More info available here: https://doc.qt.io/qt-5/qfont.html#StyleStrategy-enum
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/qrimagewidget.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/qrimagewidget.cpp b/src/qt/qrimagewidget.cpp index bf1baf5470..2332d52b9a 100644 --- a/src/qt/qrimagewidget.cpp +++ b/src/qt/qrimagewidget.cpp @@ -71,6 +71,7 @@ bool QRImageWidget::setQR(const QString& data, const QString& text) if (!text.isEmpty()) { QFont font = GUIUtil::fixedPitchFont(); + font.setStyleStrategy(QFont::NoAntialias); QRect paddedRect = qrAddrImage.rect(); // calculate ideal font size |