diff options
author | Andreas Hartmetz <andreas.hartmetz@kdab.com> | 2016-12-06 19:41:56 +0100 |
---|---|---|
committer | Andreas Hartmetz <andreas.hartmetz@kdab.com> | 2016-12-07 17:14:10 +0000 |
commit | bcb6d341283d7006e7bd2d05c971a28abb383d1b (patch) | |
tree | 5d50e1a8789f84a3cbd570a5577348c345205ca4 /imports | |
parent | a210e423a334e33acd9b5c9d9fcdc13ed1a1a9ca (diff) | |
download | neptune-ui-bcb6d341283d7006e7bd2d05c971a28abb383d1b.tar.gz |
Wire up seat heater properties correctly
- The value is [...].seatHeater.value - with ".value"
- Propagate changes from UI to backend and vice versa. Previously,
if it had worked (see above), the backend -> UI direction
would've been broken by the first UI -> backend assignment.
Change-Id: I5f88ed6926f59acda94bd47d99c51c629135b027
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'imports')
-rw-r--r-- | imports/shared/service/climate/ClimateService.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/imports/shared/service/climate/ClimateService.qml b/imports/shared/service/climate/ClimateService.qml index 869b20c..676833a 100644 --- a/imports/shared/service/climate/ClimateService.qml +++ b/imports/shared/service/climate/ClimateService.qml @@ -47,10 +47,10 @@ QtObject { property real stepValue: calculateUnitValue(0.5) property real value: calculateUnitValue(climateControl.zoneAt.FrontLeft.targetTemperature.value) - property bool heat: climateControl.zoneAt.FrontLeft.seatHeater + property bool heat: climateControl.zoneAt.FrontLeft.seatHeater.value onValueChanged: climateControl.zoneAt.FrontLeft.targetTemperature.value = value - onHeatChanged: climateControl.zoneAt.FrontLeft.seatHeater = heat + onHeatChanged: climateControl.zoneAt.FrontLeft.seatHeater.value = heat } property Connections leftSeatTargetTempConnections: Connections { target: climateControl.zoneAt.FrontLeft.targetTemperature @@ -64,10 +64,10 @@ QtObject { property real stepValue: calculateUnitValue(0.5) property real value: calculateUnitValue(climateControl.zoneAt.FrontRight.targetTemperature.value) - property bool heat: climateControl.zoneAt.FrontRight.seatHeater + property bool heat: climateControl.zoneAt.FrontRight.seatHeater.value onValueChanged: climateControl.zoneAt.FrontRight.targetTemperature.value = value - onHeatChanged: climateControl.zoneAt.FrontRight.seatHeater = heat + onHeatChanged: climateControl.zoneAt.FrontRight.seatHeater.value = heat } property Connections rightSeatTargetTempConnections: Connections { target: climateControl.zoneAt.FrontRight.targetTemperature |