Fix sliders' min/max values

This commit is contained in:
Matti Viljanen 2020-03-20 23:01:50 +02:00
parent 2854217108
commit 65627705ff
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -68,8 +68,8 @@ Page {
id: highAlertSlider id: highAlertSlider
width: parent.width width: parent.width
label: qsTr("Charging limit") label: qsTr("Charging limit")
minimumValue: 10 minimumValue: 11
maximumValue: 99 maximumValue: 100
stepSize: 1 stepSize: 1
value: settings.highAlert value: settings.highAlert
valueText: value + "%" valueText: value + "%"
@ -108,7 +108,7 @@ Page {
handleVisible: enabled handleVisible: enabled
width: parent.width width: parent.width
label: qsTr("Stop charging limit") label: qsTr("Stop charging limit")
minimumValue: 20 minimumValue: 21
maximumValue: 95 maximumValue: 95
stepSize: 1 stepSize: 1
value: settings.highLimit value: settings.highLimit
@ -126,7 +126,7 @@ Page {
width: parent.width width: parent.width
label: qsTr("Resume charging limit") label: qsTr("Resume charging limit")
minimumValue: 20 minimumValue: 20
maximumValue: 95 maximumValue: 94
stepSize: 1 stepSize: 1
value: settings.lowLimit value: settings.lowLimit
valueText: value + "%" valueText: value + "%"