From f9262c38c4b06b24f138d699b667fe73668738aa Mon Sep 17 00:00:00 2001 From: Egor Nemtsev Date: Fri, 8 Feb 2019 18:03:10 +0300 Subject: [climate] fix sliders warnings Change-Id: I8508ef0aa033508ba47a187c3becf0592b518083 Reviewed-by: Bramastyo Harimukti Santoso --- apps/com.pelagicore.climate/panels/ClimateContentPanel.qml | 5 +++-- 1 file 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 } } -- cgit v1.2.3