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