diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2020-01-13 22:33:31 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2020-01-17 11:00:22 -0800 |
commit | bba7642118e223492bf5a82eb3fed04a59e34c2c (patch) | |
tree | 14a25a73fa3d2ffbffe9a7d9d384d105088ea16c /app/HVAC.qml | |
parent | b3c59ba3cb5dd7ae849ff5666a948a4cc5c543cb (diff) |
hvac: switch to libqtappfw access for websocket dataicefish_8.99.5icefish/8.99.58.99.5
Remove QML processing of websocket data from appfw, and replace
with new libqtappfw support.
Bug-AGL: SPEC-2984
Change-Id: I0a0a422f25359da48798d3ec5e9948247a83d98e
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/HVAC.qml')
-rw-r--r-- | app/HVAC.qml | 14 |
1 files changed, 6 insertions, 8 deletions
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 } } } |