Skip to content

Commit

Permalink
Fix seat heater bindings: actually make backend -> UI changes work
Browse files Browse the repository at this point in the history
This part was lost during a rebase.

Change-Id: Ia148b5f78cc4bf17dfb3da677fbec263fc999a00
Reviewed-by: Nedim Hadzic <[email protected]>
  • Loading branch information
Andreas Hartmetz committed Dec 7, 2016
1 parent bcb6d34 commit 894d92f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions imports/shared/service/climate/ClimateService.qml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ QtObject {
onValueChanged: leftSeat.value =
calculateUnitValue(climateControl.zoneAt.FrontLeft.targetTemperature.value)
}
property Connections leftSeatHeaterConnections: Connections {
target: climateControl.zoneAt.FrontLeft.seatHeater
onValueChanged: leftSeat.heat = climateControl.zoneAt.FrontLeft.seatHeater.value
}

property QtObject rightSeat: QtObject {
property real minValue: calculateUnitValue(16)
Expand All @@ -74,6 +78,10 @@ QtObject {
onValueChanged: rightSeat.value =
calculateUnitValue(climateControl.zoneAt.FrontRight.targetTemperature.value)
}
property Connections rightSeatHeaterConnections: Connections {
target: climateControl.zoneAt.FrontRight.seatHeater
onValueChanged: rightSeat.heat = climateControl.zoneAt.FrontRight.seatHeater.value
}

property QtObject frontHeat: QtObject {
property string symbol: "front"
Expand Down

0 comments on commit 894d92f

Please sign in to comment.