From dcc040a119a377351e8a07bc9704ff3140f358a3 Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 20 Jul 2020 14:47:13 +0000 Subject: WalletManager: instantiable QML type --- src/main/main.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main') 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("moneroComponents.Clipboard", 1, 0, "Clipboard"); qmlRegisterType("moneroComponents.Downloader", 1, 0, "Downloader"); qmlRegisterType("moneroComponents.WalletKeysFilesModel", 1, 0, "WalletKeysFilesModel"); + qmlRegisterType("moneroComponents.WalletManager", 1, 0, "WalletManager"); // Temporary Qt.labs.settings replacement qmlRegisterType("moneroComponents.Settings", 1, 0, "MoneroSettings"); @@ -371,9 +372,6 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw qmlRegisterUncreatableType("moneroComponents.UnsignedTransaction", 1, 0, "UnsignedTransaction", "UnsignedTransaction can't be instantiated directly"); - qmlRegisterUncreatableType("moneroComponents.WalletManager", 1, 0, "WalletManager", - "WalletManager can't be instantiated directly"); - qmlRegisterUncreatableType("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()); -- cgit v1.2.3