mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
daemonManager: embed as context property
This commit is contained in:
parent
4cdc258b15
commit
9fbfbc4b2a
1 changed files with 5 additions and 0 deletions
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 a new issue