aboutsummaryrefslogtreecommitdiff
path: root/src/main/main.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-07-29 13:34:33 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-07-29 13:34:33 -0500
commit6aaf294f0be838bee092840b964dbd7ded76baa5 (patch)
tree76ffc6868d1e4657735e6e26e04016e88716d797 /src/main/main.cpp
parent721a0cbf914bfa35f59743dc54023e55afe8b0ec (diff)
parentdcc040a119a377351e8a07bc9704ff3140f358a3 (diff)
downloadmonzero-gui-6aaf294f0be838bee092840b964dbd7ded76baa5.tar.gz
monzero-gui-6aaf294f0be838bee092840b964dbd7ded76baa5.tar.xz
monzero-gui-6aaf294f0be838bee092840b964dbd7ded76baa5.zip
Merge pull request #3019
dcc040a WalletManager: instantiable QML type (xiphon)
Diffstat (limited to 'src/main/main.cpp')
-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());