diff options
author | Andreas Hartmetz <andreas.hartmetz@kdab.com> | 2016-12-15 19:48:50 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-01-26 09:15:23 +0000 |
commit | 40e26b22705f1e1ec71edcbc869e9fd9b1cfbe53 (patch) | |
tree | 01d0021421da450f2ea8534e15eea9e05b3bec13 /imports | |
parent | e7d535202da4a6c85936d3a344538fb7d720dbf0 (diff) |
Wire up airflow directions to the backend
It wasn't connected before, now changes are propagated both ways,
and even the list of available airflow configurations comes from
the backend.
Change-Id: I69e61fd795014c2e3f0f98832b828a302ace5d34
Reviewed-by: Jaroslaw Kubik <jarek@froglogic.com>
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'imports')
-rw-r--r-- | imports/shared/service/climate/ClimateService.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/imports/shared/service/climate/ClimateService.qml b/imports/shared/service/climate/ClimateService.qml index 37e7480..b762ac8 100644 --- a/imports/shared/service/climate/ClimateService.qml +++ b/imports/shared/service/climate/ClimateService.qml @@ -141,6 +141,16 @@ QtObject { climateControl.fanSpeedLevel.value = newVentilation; } + property QtObject airflowDirections: QtObject { + property int directions: climateControl.airflowDirections.value + property var availableDirections: climateControl.airflowDirections.availableValues + onDirectionsChanged: climateControl.airflowDirections.value = directions + } + property Connections airflowDirectionsConnections: Connections { + target: climateControl.airflowDirections + onValueChanged: airflowDirections.directions = climateControl.airflowDirections.value + } + property QtObject stateMachine: ClimateStateMachine { climateControl: root.climateControl doorsOpen: eco.enabled // TODO use QtIVI doors/window state for this eventually |