diff options
| author | Wojciech GomoĊa <szogun1987@gmail.com> | 2018-01-28 14:52:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-28 14:52:53 +0100 |
| commit | 1ad20a1fb3705fcc57569ef71e0145a8d2277f8f (patch) | |
| tree | 1547832f1258303ee7b51bf98f6d054c9c6a5921 /main.cpp | |
| parent | 9d22b6ab4da8f310b629f989233c517eb51d301d (diff) | |
| parent | bed05a484cd54cf7269c75df2b1446638df26f7f (diff) | |
| download | monzero-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.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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>(); |
