aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorWojciech GomoĊ‚a <szogun1987@gmail.com>2018-01-28 14:52:53 +0100
committerGitHub <noreply@github.com>2018-01-28 14:52:53 +0100
commit1ad20a1fb3705fcc57569ef71e0145a8d2277f8f (patch)
tree1547832f1258303ee7b51bf98f6d054c9c6a5921 /main.cpp
parent9d22b6ab4da8f310b629f989233c517eb51d301d (diff)
parentbed05a484cd54cf7269c75df2b1446638df26f7f (diff)
downloadmonzero-gui-1ad20a1fb3705fcc57569ef71e0145a8d2277f8f.tar.gz
monzero-gui-1ad20a1fb3705fcc57569ef71e0145a8d2277f8f.tar.xz
monzero-gui-1ad20a1fb3705fcc57569ef71e0145a8d2277f8f.zip
Merge pull request #1 from monero-project/master
Refresh with source fork
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index f9217e00..08bcb9e3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,4 +1,4 @@
-// Copyright (c) 2014-2015, The Monero Project
+// Copyright (c) 2014-2018, The Monero Project
//
// All rights reserved.
//
@@ -50,6 +50,8 @@
#include "model/TransactionHistorySortFilterModel.h"
#include "AddressBook.h"
#include "model/AddressBookModel.h"
+#include "Subaddress.h"
+#include "model/SubaddressModel.h"
#include "wallet/api/wallet2_api.h"
#include "MainApp.h"
@@ -70,6 +72,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
int main(int argc, char *argv[])
{
+ Monero::Utils::onStartup();
// // Enable high DPI scaling on windows & linux
//#if !defined(Q_OS_ANDROID) && QT_VERSION >= 0x050600
// QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
@@ -132,6 +135,12 @@ int main(int argc, char *argv[])
qmlRegisterUncreatableType<AddressBook>("moneroComponents.AddressBook", 1, 0, "AddressBook",
"AddressBook can't be instantiated directly");
+ qmlRegisterUncreatableType<SubaddressModel>("moneroComponents.SubaddressModel", 1, 0, "SubaddressModel",
+ "SubaddressModel can't be instantiated directly");
+
+ qmlRegisterUncreatableType<Subaddress>("moneroComponents.Subaddress", 1, 0, "Subaddress",
+ "Subaddress can't be instantiated directly");
+
qRegisterMetaType<PendingTransaction::Priority>();
qRegisterMetaType<TransactionInfo::Direction>();
qRegisterMetaType<TransactionHistoryModel::TransactionInfoRole>();