aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qrimagewidget.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-08-23 23:53:17 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-07 15:49:37 +0300
commit6954156b4091bc1e561502f0eef0cece56c76eec (patch)
tree9320d39e4423810b9183c12268516fe3f873ffec /src/qt/qrimagewidget.h
parent8071c75d45e12c2bca04b170c687bebd30ad19ac (diff)
downloadbitcoin-6954156b4091bc1e561502f0eef0cece56c76eec.tar.xz
qt: Fix visual quality of text in QR image
Diffstat (limited to 'src/qt/qrimagewidget.h')
-rw-r--r--src/qt/qrimagewidget.h4
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;