diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-08-23 23:53:17 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-07 15:49:37 +0300 |
commit | 6954156b4091bc1e561502f0eef0cece56c76eec (patch) | |
tree | 9320d39e4423810b9183c12268516fe3f873ffec /src/qt/qrimagewidget.h | |
parent | 8071c75d45e12c2bca04b170c687bebd30ad19ac (diff) |
qt: Fix visual quality of text in QR image
Diffstat (limited to 'src/qt/qrimagewidget.h')
-rw-r--r-- | src/qt/qrimagewidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/qrimagewidget.h b/src/qt/qrimagewidget.h index cca598c2ce..a031bd7632 100644 --- a/src/qt/qrimagewidget.h +++ b/src/qt/qrimagewidget.h @@ -12,7 +12,9 @@ static const int MAX_URI_LENGTH = 255; /* Size of exported QR Code image */ -static const int QR_IMAGE_SIZE = 300; +static constexpr int QR_IMAGE_SIZE = 300; +static constexpr int QR_IMAGE_TEXT_MARGIN = 10; +static constexpr int QR_IMAGE_MARGIN = 2 * QR_IMAGE_TEXT_MARGIN; QT_BEGIN_NAMESPACE class QMenu; |