mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Show proper values of the active handle of the slider
This commit is contained in:
parent
a0df6bf542
commit
694da25bb7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue