diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2019-02-08 18:03:10 +0300 |
---|---|---|
committer | Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com> | 2019-02-11 08:57:38 +0000 |
commit | f9262c38c4b06b24f138d699b667fe73668738aa (patch) | |
tree | 78b135409826b4a8cbcc689f33f2f989479fa9c2 | |
parent | 837dfc4c2bc343c436ade916436acb159ba58f7e (diff) |
[climate] fix sliders warnings
Change-Id: I8508ef0aa033508ba47a187c3becf0592b518083
Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r-- | apps/com.pelagicore.climate/panels/ClimateContentPanel.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/com.pelagicore.climate/panels/ClimateContentPanel.qml b/apps/com.pelagicore.climate/panels/ClimateContentPanel.qml index 7ceed58f..c1c12ebe 100644 --- a/apps/com.pelagicore.climate/panels/ClimateContentPanel.qml +++ b/apps/com.pelagicore.climate/panels/ClimateContentPanel.qml @@ -59,12 +59,13 @@ Item { // need to set "to" and "from" before "value", as modifying them also causes // "value" to change - leftTempSlider.from = root.store.leftSeat.minValue + //keep init order not to have negative model size warning, Slider defaults 0.0 .. 1.0 leftTempSlider.to = root.store.leftSeat.maxValue + leftTempSlider.from = root.store.leftSeat.minValue leftTempSlider.value = root.store.leftSeat.value - rightTempSlider.from = root.store.rightSeat.minValue rightTempSlider.to = root.store.rightSeat.maxValue + rightTempSlider.from = root.store.rightSeat.minValue rightTempSlider.value = root.store.rightSeat.value } } |