Commit 7b32dd58 authored by Gus Grubba's avatar Gus Grubba

Use a decimal point precision if max slider value is 1 or less.

parent 1b6293c6
...@@ -68,7 +68,7 @@ Slider { ...@@ -68,7 +68,7 @@ Slider {
radius: _radius radius: _radius
property real _radius: Math.round(ScreenTools.defaultFontPixelHeight * 0.75) property real _radius: Math.round(ScreenTools.defaultFontPixelHeight * 0.75)
Label { Label {
text: _root.value.toFixed(0) text: _root.value.toFixed( _root.maximumValue <= 1 ? 1 : 0)
visible: _root.displayValue visible: _root.displayValue
anchors.centerIn: parent anchors.centerIn: parent
font.family: ScreenTools.normalFontFamily font.family: ScreenTools.normalFontFamily
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment