From d4be7634cbc80cd40c2ff8456bcd962b21b2dcb6 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 1 May 2019 04:05:16 +0200 Subject: Fiat API Co-Authored-By: selsta Co-Authored-By: Gene Peters --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 8b693215..a51568d2 100644 --- a/main.cpp +++ b/main.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -65,6 +66,7 @@ #include "qt/utils.h" #include "qt/mime.h" #include "src/qt/KeysFiles.h" +#include "qt/prices.h" // IOS exclusions #ifndef Q_OS_IOS @@ -356,6 +358,11 @@ int main(int argc, char *argv[]) builtWithScanner = true; #endif engine.rootContext()->setContextProperty("builtWithScanner", builtWithScanner); + + QNetworkAccessManager *manager = new QNetworkAccessManager(); + Prices prices(manager); + engine.rootContext()->setContextProperty("Prices", &prices); + // Load main window (context properties needs to be defined obove this line) engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); if (engine.rootObjects().isEmpty()) -- cgit v1.2.3