aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2019-10-25 13:18:38 -0400
committerWladimir J. van der Laan <laanwj@protonmail.com>2019-10-26 13:07:09 +0200
commiteb5a899d5a973fe5f4700a57da82753f05138460 (patch)
tree4d916cbe0dd468cde9fc6df2971bd580148af9ef
parente39c9cff1a626ee038a541258d6e271ce63969a9 (diff)
gui: disable font antialiasing for QR image addressv0.19.0rc2
More info available here: https://doc.qt.io/qt-5/qfont.html#StyleStrategy-enum Github-Pull: #17257 Rebased-From: e156b9d8b974f57253306b693a03aa80322ebc6c Tree-SHA512: 6e36d626215d5e66796bd3935037eef89ae810e4855e321f9f37b90c3be0b61de21cd655f23bc6a29f41038b5179d92578ab19ab89ccd525d9389ab868456827
-rw-r--r--src/qt/qrimagewidget.cpp1
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