aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authormoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-20 12:36:14 +0000
committermoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-20 18:53:12 +0000
commit96c7ddeea8e590726ef3c28faead8205bb45ac41 (patch)
tree601b36221a05c638d713c013045ecfb77652e9b3 /main.cpp
parentc83336cc4714215725cba957d8ea164a57c33987 (diff)
downloadmonzero-gui-96c7ddeea8e590726ef3c28faead8205bb45ac41.tar.gz
monzero-gui-96c7ddeea8e590726ef3c28faead8205bb45ac41.tar.xz
monzero-gui-96c7ddeea8e590726ef3c28faead8205bb45ac41.zip
Add QR code display on the receive page
This embeds MIT licenced code from Project Nayuki: https://www.nayuki.io/page/qr-code-generator-library The C++ part of the code is embedded in src/QR-Code-generator. See src/QR-Code-generator/Readme.markdown for more info.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 917f1e58..fe42cb61 100644
--- a/main.cpp
+++ b/main.cpp
@@ -37,6 +37,7 @@
#include "oshelper.h"
#include "WalletManager.h"
#include "Wallet.h"
+#include "QRCodeImageProvider.h"
#include "PendingTransaction.h"
#include "TranslationManager.h"
#include "TransactionInfo.h"
@@ -102,6 +103,7 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("translationManager", TranslationManager::instance());
+ engine.addImageProvider(QLatin1String("qrcode"), new QRCodeImageProvider());
// export to QML monero accounts root directory
// wizard is talking about where