X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=app%2FHVAC.qml;fp=app%2FHVAC.qml;h=8aa88c146a4551379e0055a9169c0d6e8f456a1b;hb=bba7642118e223492bf5a82eb3fed04a59e34c2c;hp=8867168ab2af1859bf70905caccb0a0731ba10e8;hpb=b3c59ba3cb5dd7ae849ff5666a948a4cc5c543cb;p=apps%2Fhvac.git diff --git a/app/HVAC.qml b/app/HVAC.qml index 8867168..8aa88c1 100644 --- a/app/HVAC.qml +++ b/app/HVAC.qml @@ -19,7 +19,6 @@ import QtQuick.Layouts 1.1 import QtQuick.Controls 2.0 import AGL.Demo.Controls 1.0 import Translator 1.0 -import 'api' as API ApplicationWindow { id: root @@ -29,12 +28,11 @@ ApplicationWindow { Translator { id: translator - language: binding.language + language: "en_US" } - API.Binding { - id: binding - url: bindingAddress + Connections { + target: hvac onFanSpeedChanged: fanSpeedSlider.value = fanSpeed onLanguageChanged: translator.language = language } @@ -67,7 +65,7 @@ ApplicationWindow { to: 255.0 stepSize: 1.0 onValueChanged: { - binding.fanSpeed = value + hvac.fanSpeed = value } } Label { @@ -93,7 +91,7 @@ ApplicationWindow { HeatDegree { onCurrentItemChanged: { console.log("Left Temp changed",degree) - binding.leftTemperature = degree + hvac.leftTemperature = degree } } } @@ -145,7 +143,7 @@ ApplicationWindow { HeatDegree { onCurrentItemChanged: { console.log("Right Temp changed",degree) - binding.rightTemperature = degree + hvac.rightTemperature = degree } } }