X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps%2Fhvac.git;a=blobdiff_plain;f=app%2Fmain.cpp;fp=app%2Fmain.cpp;h=e4f87bf31dfd4e60373f5918f731ead6834ecde8;hp=c320ef8bbddcb7ce6e79df9a1c1efb16c3fa4955;hb=d37674bb6dbb5ceb15c650a0344b0caf624963bc;hpb=c173b5b5fbdb9013304ad62e0dc8f8bb9a072e7d 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")));