Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
7b32dd58
Commit
7b32dd58
authored
Jan 29, 2020
by
Gus Grubba
Browse files
Use a decimal point precision if max slider value is 1 or less.
parent
1b6293c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QmlControls/QGCSlider.qml
View file @
7b32dd58
...
...
@@ -68,7 +68,7 @@ Slider {
radius
:
_radius
property
real
_radius
:
Math
.
round
(
ScreenTools
.
defaultFontPixelHeight
*
0.75
)
Label
{
text
:
_root
.
value
.
toFixed
(
0
)
text
:
_root
.
value
.
toFixed
(
_root
.
maximumValue
<=
1
?
1
:
0
)
visible
:
_root
.
displayValue
anchors.centerIn
:
parent
font.family
:
ScreenTools
.
normalFontFamily
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment