diff options
| author | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-11-20 12:36:14 +0000 |
|---|---|---|
| committer | moneromooo.monero <moneromooo.monero@users.noreply.github.com> | 2016-11-20 18:53:12 +0000 |
| commit | 96c7ddeea8e590726ef3c28faead8205bb45ac41 (patch) | |
| tree | 601b36221a05c638d713c013045ecfb77652e9b3 /main.cpp | |
| parent | c83336cc4714215725cba957d8ea164a57c33987 (diff) | |
| download | monzero-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.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
