Code Review
/
apps
/
hvac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Temperature setting is decoupled from the seat-heating button
[apps/hvac.git]
/
app
/
HVAC.qml
diff --git
a/app/HVAC.qml
b/app/HVAC.qml
index
f5cd76b
..
0d60cbd
100644
(file)
--- a/
app/HVAC.qml
+++ b/
app/HVAC.qml
@@
-46,6
+46,9
@@
ApplicationWindow {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
+ from: 0.0
+ to: 255.0
+ stepSize: 1.0
onValueChanged: {
binding.fanSpeed = value
}
onValueChanged: {
binding.fanSpeed = value
}
@@
-71,7
+74,10
@@
ApplicationWindow {
side: 'Left'
}
HeatDegree {
side: 'Left'
}
HeatDegree {
- enabled: leftSeat.headLevel > 0
+ onCurrentItemChanged: {
+ console.log("Left Temp changed",degree)
+ binding.leftTemperature = degree
+ }
}
}
ColumnLayout {
}
}
ColumnLayout {
@@
-120,7
+126,10
@@
ApplicationWindow {
side: 'Right'
}
HeatDegree {
side: 'Right'
}
HeatDegree {
- enabled: rightSeat.headLevel > 0
+ onCurrentItemChanged: {
+ console.log("Right Temp changed",degree)
+ binding.rightTemperature = degree
+ }
}
}
}
}
}
}