summaryrefslogtreecommitdiffstats
path: root/app/main.cpp
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-06-16 00:46:08 -0400
committerScott Murray <scott.murray@konsulko.com>2022-06-16 00:46:49 -0400
commitd37674bb6dbb5ceb15c650a0344b0caf624963bc (patch)
treee830a361ecabc35def0741a2b6e78b2ef3f09588 /app/main.cpp
parentc173b5b5fbdb9013304ad62e0dc8f8bb9a072e7d (diff)
Add VIS vehicle signal supportneedlefish_13.93.0needlefish/13.93.013.93.0
Update the use of the HVAC API from libqtappfw for its rework to use VIS signals instead of the previous signal-composer usage. Bug-AGL: SPEC-4409 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I7cd2511248c67896c91908f56e1f91fd15b7a0dd
Diffstat (limited to 'app/main.cpp')
-rw-r--r--app/main.cpp5
1 files changed, 4 insertions, 1 deletions
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 <QQmlApplicationEngine>
#include <QDebug>
#include <hvac.h>
+#include <vehiclesignals.h>
#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>("Translator", 1, 0, "Translator");
engine.load(QUrl(QStringLiteral("qrc:/HVAC.qml")));