aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-07-20 14:47:13 +0000
committerxiphon <xiphon@protonmail.com>2020-07-29 15:17:02 +0000
commitdcc040a119a377351e8a07bc9704ff3140f358a3 (patch)
tree82d903de32fe87eecdeae1c403bef4e981024697 /src/main
parent63e32c4a83f798171c08e093680deafb8b0929a4 (diff)
downloadmonzero-gui-dcc040a119a377351e8a07bc9704ff3140f358a3.tar.gz
monzero-gui-dcc040a119a377351e8a07bc9704ff3140f358a3.tar.xz
monzero-gui-dcc040a119a377351e8a07bc9704ff3140f358a3.zip
WalletManager: instantiable QML type
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 3aeb2ded..f5423940 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -358,6 +358,7 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
qmlRegisterType<clipboardAdapter>("moneroComponents.Clipboard", 1, 0, "Clipboard");
qmlRegisterType<Downloader>("moneroComponents.Downloader", 1, 0, "Downloader");
qmlRegisterType<WalletKeysFilesModel>("moneroComponents.WalletKeysFilesModel", 1, 0, "WalletKeysFilesModel");
+ qmlRegisterType<WalletManager>("moneroComponents.WalletManager", 1, 0, "WalletManager");
// Temporary Qt.labs.settings replacement
qmlRegisterType<MoneroSettings>("moneroComponents.Settings", 1, 0, "MoneroSettings");
@@ -371,9 +372,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
qmlRegisterUncreatableType<UnsignedTransaction>("moneroComponents.UnsignedTransaction", 1, 0, "UnsignedTransaction",
"UnsignedTransaction can't be instantiated directly");
- qmlRegisterUncreatableType<WalletManager>("moneroComponents.WalletManager", 1, 0, "WalletManager",
- "WalletManager can't be instantiated directly");
-
qmlRegisterUncreatableType<TranslationManager>("moneroComponents.TranslationManager", 1, 0, "TranslationManager",
"TranslationManager can't be instantiated directly");
@@ -435,10 +433,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
engine.rootContext()->setContextProperty("moneroAccountsDir", moneroAccountsDir);
- WalletManager *walletManager = WalletManager::instance();
-
- engine.rootContext()->setContextProperty("walletManager", walletManager);
-
engine.rootContext()->setContextProperty("translationManager", TranslationManager::instance());
engine.addImageProvider(QLatin1String("qrcode"), new QRCodeImageProvider());