diff options
| author | Michi Lumin <[email protected]> | 2021-04-13 16:17:04 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-13 16:17:04 -0600 |
| commit | ce265449c6a5974303037c926bde209cb0ad537e (patch) | |
| tree | cc8c7ab2b7161cd7d1ed5794cd51f72ed0794f74 | |
| parent | Merge pull request #1788 from patricklodder/1.14-fix-rpc-null-responses (diff) | |
| parent | [bugfix] fix text overflow on paper wallet (diff) | |
| download | discoin-ce265449c6a5974303037c926bde209cb0ad537e.tar.xz discoin-ce265449c6a5974303037c926bde209cb0ad537e.zip | |
Merge pull request #1805 from patricklodder/1.14.4-paper-wallet-text-overflow
[bugfix] fix text overflow on paper wallet
| -rw-r--r-- | src/qt/forms/paperwalletdialog.ui | 8 | ||||
| -rw-r--r-- | src/qt/utilitydialog.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/qt/forms/paperwalletdialog.ui b/src/qt/forms/paperwalletdialog.ui index 60a36e2ef..df3d8415f 100644 --- a/src/qt/forms/paperwalletdialog.ui +++ b/src/qt/forms/paperwalletdialog.ui @@ -82,14 +82,14 @@ <property name="geometry"> <rect> <x>212</x> - <y>20</y> + <y>10</y> <width>31</width> - <height>341</height> + <height>361</height> </rect> </property> <property name="font"> <font> - <family>Monospace</family> + <family>Courier</family> <pointsize>12</pointsize> <weight>75</weight> <italic>false</italic> @@ -117,7 +117,7 @@ </property> <property name="font"> <font> - <family>Monospace</family> + <family>Courier</family> <pointsize>8</pointsize> <weight>50</weight> <italic>false</italic> diff --git a/src/qt/utilitydialog.cpp b/src/qt/utilitydialog.cpp index e25e8cf7b..085523dc0 100644 --- a/src/qt/utilitydialog.cpp +++ b/src/qt/utilitydialog.cpp @@ -200,7 +200,7 @@ PaperWalletDialog::PaperWalletDialog(QWidget *parent) : ui->buttonBox->addButton(tr("Close"), QDialogButtonBox::RejectRole); // Begin with a small bold monospace font for the textual version of the key and address. - QFont font("Monospace"); + QFont font("Courier"); font.setBold(true); font.setStyleHint(QFont::TypeWriter); font.setPixelSize(1); @@ -302,7 +302,7 @@ void PaperWalletDialog::on_getNewAddress_clicked() // Update the fonts to fit the height of the wallet. // This should only really trigger the first time since the font size persists. double paperHeight = (double)ui->paperTemplate->height(); - double maxTextWidth = paperHeight * 0.99; + double maxTextWidth = paperHeight * 0.98; double minTextWidth = paperHeight * 0.95; int pixelSizeStep = 1; |