Set sliders to max 50

This commit is contained in:
Anton Thomasson 2021-12-05 13:23:14 +01:00
parent c4519e3faf
commit b29458fe9f
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ Setting {
{ {
id: slider id: slider
minimumValue: low minimumValue: low
maximumValue: high < 100 ? high : 100 maximumValue: high < 50 ? high : 50
width: parent.width width: parent.width
stepSize: 1 stepSize: 1
onValueChanged: onValueChanged:

View file

@ -59,7 +59,7 @@ Setting {
{ {
id: low_slider id: low_slider
minimumValue: 1 minimumValue: 1
maximumValue: high > 100 ? 100 : high maximumValue: high > 50 ? 50 : high
width: parent.width width: parent.width
stepSize: 1 stepSize: 1
onValueChanged: onValueChanged:
@ -87,7 +87,7 @@ Setting {
{ {
id: high_slider id: high_slider
minimumValue: 0 minimumValue: 0
maximumValue: high > 100 ? 100 : high maximumValue: high > 50 ? 50 : high
width: parent.width width: parent.width
stepSize: 1 stepSize: 1
onValueChanged: onValueChanged: