X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Fmain.cpp;h=e4f87bf31dfd4e60373f5918f731ead6834ecde8;hb=2f96cf1047608fa5bf83addc52695b1b7d23b28c;hp=c320ef8bbddcb7ce6e79df9a1c1efb16c3fa4955;hpb=646cd2fa9b9645d6b5807bcf880af26d1a7aec73;p=apps%2Fhvac.git diff --git a/app/main.cpp b/app/main.cpp index c320ef8..e4f87bf 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 The Qt Company Ltd. + * Copyright (C) 2022 Konsulko Group * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +19,7 @@ #include #include #include +#include #include "translator.h" @@ -28,7 +30,8 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QQmlApplicationEngine engine; - engine.rootContext()->setContextProperty("hvac", new HVAC()); + VehicleSignalsConfig vsConfig("hvac"); + engine.rootContext()->setContextProperty("hvac", new HVAC(new VehicleSignals(vsConfig))); qmlRegisterType("Translator", 1, 0, "Translator"); engine.load(QUrl(QStringLiteral("qrc:/HVAC.qml")));