mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 14:36:00 +08:00
Show proper values of the active handle of the slider
This commit is contained in:
parent
a0df6bf542
commit
694da25bb7
@ -481,7 +481,7 @@ Item
|
|||||||
Rectangle
|
Rectangle
|
||||||
{
|
{
|
||||||
x: parent.width + UM.Theme.getSize("slider_layerview_background").width / 2;
|
x: parent.width + UM.Theme.getSize("slider_layerview_background").width / 2;
|
||||||
y: parent.height - (parent.value * parent.pixelsPerStep) - UM.Theme.getSize("slider_handle").height * 1.25;
|
y: slider.activeHandle.y + slider.activeHandle.height / 2 - valueLabel.height / 2;
|
||||||
|
|
||||||
height: UM.Theme.getSize("slider_handle").height + UM.Theme.getSize("default_margin").height
|
height: UM.Theme.getSize("slider_handle").height + UM.Theme.getSize("default_margin").height
|
||||||
width: valueLabel.width + UM.Theme.getSize("default_margin").width
|
width: valueLabel.width + UM.Theme.getSize("default_margin").width
|
||||||
@ -497,7 +497,7 @@ Item
|
|||||||
{
|
{
|
||||||
id: valueLabel
|
id: valueLabel
|
||||||
property string maxValue: slider.maximumValue + 1
|
property string maxValue: slider.maximumValue + 1
|
||||||
text: slider.value + 1
|
text: slider.activeHandle.value + 1
|
||||||
horizontalAlignment: TextInput.AlignRight;
|
horizontalAlignment: TextInput.AlignRight;
|
||||||
onEditingFinished:
|
onEditingFinished:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user