1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-20 04:15:53 +01:00

daemonManager: embed as context property

This commit is contained in:
Jaquee 2016-11-25 21:06:41 +01:00
parent 4cdc258b15
commit 9fbfbc4b2a
No known key found for this signature in database
GPG Key ID: 384E52B09F45DC39

View File

@ -44,6 +44,7 @@
#include "TransactionHistory.h"
#include "model/TransactionHistoryModel.h"
#include "model/TransactionHistorySortFilterModel.h"
#include "daemon/DaemonManager.h"
int main(int argc, char *argv[])
@ -88,6 +89,8 @@ int main(int argc, char *argv[])
qmlRegisterUncreatableType<TransactionInfo>("moneroComponents.TransactionInfo", 1, 0, "TransactionInfo",
"TransactionHistory can't be instantiated directly");
qmlRegisterUncreatableType<DaemonManager>("moneroComponents.DaemonManager", 1, 0, "DaemonManager",
"DaemonManager can't be instantiated directly");
qRegisterMetaType<PendingTransaction::Priority>();
qRegisterMetaType<TransactionInfo::Direction>();
qRegisterMetaType<TransactionHistoryModel::TransactionInfoRole>();
@ -105,6 +108,8 @@ int main(int argc, char *argv[])
engine.addImageProvider(QLatin1String("qrcode"), new QRCodeImageProvider());
engine.rootContext()->setContextProperty("daemonManager", DaemonManager::instance());
// export to QML monero accounts root directory
// wizard is talking about where
// to save the wallet file (.keys, .bin), they have to be user-accessible for