aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-02-23 18:59:26 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-02-23 18:59:26 +0300
commit1195a89d06956dd91f274182b07774dae8a1c0d2 (patch)
tree4494cc36e6a68bde7bc7c51a8d29c260be8d204f /main.cpp
parent921d16a458581d01f55a7ba2f6076d1ba6daaacf (diff)
downloadmonzero-gui-1195a89d06956dd91f274182b07774dae8a1c0d2.tar.gz
monzero-gui-1195a89d06956dd91f274182b07774dae8a1c0d2.tar.xz
monzero-gui-1195a89d06956dd91f274182b07774dae8a1c0d2.zip
started integrating wallet library
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index af429df3..e3917f80 100644
--- a/main.cpp
+++ b/main.cpp
@@ -33,6 +33,9 @@
#include "clipboardAdapter.h"
#include "filter.h"
#include "oscursor.h"
+#include "WalletManager.h"
+#include "Wallet.h"
+
int main(int argc, char *argv[])
{
@@ -41,11 +44,13 @@ int main(int argc, char *argv[])
app.installEventFilter(eventFilter);
qmlRegisterType<clipboardAdapter>("moneroComponents", 1, 0, "Clipboard");
+ qmlRegisterType<Wallet>("moneroWallet", 1, 0, "Wallet");
QQmlApplicationEngine engine;
OSCursor cursor;
engine.rootContext()->setContextProperty("globalCursor", &cursor);
+ engine.rootContext()->setContextProperty("walletManager", WalletManager::instance());
// export to QML monero accounts root directory
// wizard is talking about where