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:
parent
4cdc258b15
commit
9fbfbc4b2a
5
main.cpp
5
main.cpp
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user