aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletframe.cpp
diff options
context:
space:
mode:
authorMax K <[email protected]>2018-01-28 18:44:52 +0100
committerRoss Nicoll <[email protected]>2019-03-25 05:36:12 +0000
commit2a0c66035d0fb53b3d12b299707244a13d19cb37 (patch)
treeb4760c7b98acb27a10c895375e104e1c11d3d92f /src/qt/walletframe.cpp
parentUpdate about menu icon to Dogecoin (diff)
downloaddiscoin-2a0c66035d0fb53b3d12b299707244a13d19cb37.tar.xz
discoin-2a0c66035d0fb53b3d12b299707244a13d19cb37.zip
Re-add paperwallet printer (#1467)
* Add paper wallet generator to QT wallet * Replace print icon with Typeicons equivalent * Re-add printer support to Qt * depends: fix fontconfig with newer glibc See comment for more detail * Set fixed size for paper wallet dialog
Diffstat (limited to 'src/qt/walletframe.cpp')
-rw-r--r--src/qt/walletframe.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp
index f3183320f..b2bb7d554 100644
--- a/src/qt/walletframe.cpp
+++ b/src/qt/walletframe.cpp
@@ -8,6 +8,7 @@
#include "walletview.h"
#include <cstdio>
+#include <iostream>
#include <QHBoxLayout>
#include <QLabel>
@@ -178,6 +179,13 @@ void WalletFrame::unlockWallet()
walletView->unlockWallet();
}
+void WalletFrame::printPaperWallets()
+{
+ WalletView *walletView = currentWalletView();
+ if (walletView)
+ walletView->printPaperWallets();
+}
+
void WalletFrame::usedSendingAddresses()
{
WalletView *walletView = currentWalletView();