summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMarko Kangas <marko.kangas@theqtcompany.com>2015-12-02 15:28:37 +0200
committerMarko Kangas <marko.kangas@theqtcompany.com>2015-12-07 08:38:25 +0000
commit2303aa67ed278a72b9f043e79e6ebe552acaf74d (patch)
treef34323c6c5fb49f6dfa146c5b427b33856ad639a /examples
parent35cd7a31f84fef66585a12983c77f6e5b37284ec (diff)
downloadqtivi-2303aa67ed278a72b9f043e79e6ebe552acaf74d.tar.gz
Add Neptune UI support to climate backend simulator
Changed fanspeed and steeringwheel heater to generic attributes that backend simulator supports neptune ui climate requirements. Updated also climate_qml example. Change-Id: Ie2e29ef8af6c23245ebab0fa95de1e07d02fbe6f Task-number: QTAUTO-14 Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/vehiclefunctions/climate_qml/main.qml43
1 files changed, 37 insertions, 6 deletions
diff --git a/examples/vehiclefunctions/climate_qml/main.qml b/examples/vehiclefunctions/climate_qml/main.qml
index ad6c0aa..4226ea3 100644
--- a/examples/vehiclefunctions/climate_qml/main.qml
+++ b/examples/vehiclefunctions/climate_qml/main.qml
@@ -124,6 +124,37 @@ ApplicationWindow {
climateControl.airRecirculation = checked
}
}
+
+ ColumnLayout {
+ RowLayout {
+
+ Label {
+ text: "Fan Speed"
+ }
+
+ SpinBox {
+ value: climateControl.fanSpeedLevel
+ onValueChanged: {
+ climateControl.fanSpeedLevel = value
+ }
+ }
+ }
+
+
+ RowLayout {
+
+ Label {
+ text: "Steering Wheel Heater"
+ }
+
+ SpinBox {
+ value: climateControl.steeringWheelHeater
+ onValueChanged: {
+ climateControl.steeringWheelHeater = value
+ }
+ }
+ }
+ }
//![2]
//![3]
@@ -134,13 +165,13 @@ ApplicationWindow {
RowLayout {
Label {
- text: "Fan Speed"
+ text: "Temperature"
}
SpinBox {
- value: climateControl.zoneAt.FrontLeft.fanSpeedLevel
+ value: climateControl.zoneAt.FrontLeft.targetTemperature
onValueChanged: {
- climateControl.zoneAt.FrontLeft.fanSpeedLevel = value
+ climateControl.zoneAt.FrontLeft.targetTemperature = value
}
}
}
@@ -149,13 +180,13 @@ ApplicationWindow {
RowLayout {
Label {
- text: "Steering Wheel Heater"
+ text: "Seat Heater"
}
SpinBox {
- value: climateControl.zoneAt.FrontLeft.steeringWheelHeater
+ value: climateControl.zoneAt.FrontLeft.seatHeater
onValueChanged: {
- climateControl.zoneAt.FrontLeft.steeringWheelHeater = value
+ climateControl.zoneAt.FrontLeft.seatHeater = value
}
}
}