diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2019-10-26 13:06:12 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2019-10-26 13:06:18 +0200 |
commit | be50469217bd775c4305938634c32e5932f47841 (patch) | |
tree | 86e18c546fdf12c788bb176823491deb7c5caf23 | |
parent | 9bd109b78d938dfe95d31d089e0c74061c30103f (diff) | |
parent | e156b9d8b974f57253306b693a03aa80322ebc6c (diff) |
Merge #17257: gui: disable font antialiasing for QR image address
e156b9d8b974f57253306b693a03aa80322ebc6c gui: disable font antialiasing for QR image address (fanquake)
Pull request description:
The address text inside the QR code is currently fairly blurry / unreadable. Explicitly disabling font antialiasing improves that somewhat.
master (693e40090ae7af52585ce1a6136a4bd56318fac7):
![macOS_master](https://user-images.githubusercontent.com/863730/67591414-644e0580-f72b-11e9-8399-2cd0584e7d62.png)
PR (e156b9d8b974f57253306b693a03aa80322ebc6c):
![macOS_pr](https://user-images.githubusercontent.com/863730/67591424-6dd76d80-f72b-11e9-86b6-b3911f8e07e6.png)
ACKs for top commit:
laanwj:
ACK e156b9d8b974f57253306b693a03aa80322ebc6c
Tree-SHA512: 32aeb2ffe8164a1006f80e76c6e413fcb88e32ced42d2b2af69cca908bd32673f3e379184be917f1870864b940db943e7f46a7ecb0779343d5d129b381660c38
-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 |