Temperature setting is decoupled from the seat-heating button
[apps/hvac.git] / app / HVAC.qml
index f5cd76b..0d60cbd 100644 (file)
@@ -46,6 +46,9 @@ ApplicationWindow {
                     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
                     }
@@ -71,7 +74,10 @@ ApplicationWindow {
                     side: 'Left'
                 }
                 HeatDegree {
-                    enabled: leftSeat.headLevel > 0
+                    onCurrentItemChanged: {
+                        console.log("Left Temp changed",degree)
+                        binding.leftTemperature = degree
+                    }
                 }
             }
             ColumnLayout {
@@ -120,7 +126,10 @@ ApplicationWindow {
                     side: 'Right'
                 }
                 HeatDegree {
-                    enabled: rightSeat.headLevel > 0
+                    onCurrentItemChanged: {
+                        console.log("Right Temp changed",degree)
+                        binding.rightTemperature = degree
+                    }
                 }
             }
         }