gui: disable font antialiasing for QR image address
More info available here: https://doc.qt.io/qt-5/qfont.html#StyleStrategy-enum Github-Pull: #17257 Rebased-From: e156b9d8b974f57253306b693a03aa80322ebc6c Tree-SHA512: 6e36d626215d5e66796bd3935037eef89ae810e4855e321f9f37b90c3be0b61de21cd655f23bc6a29f41038b5179d92578ab19ab89ccd525d9389ab868456827
This commit is contained in:
parent
e39c9cff1a
commit
eb5a899d5a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue