Move upper layer slider handle label to the top

CURA-6854
This commit is contained in:
Nino van Hooff 2019-10-29 11:47:39 +01:00
parent 2beeca0687
commit 5ebdae9f1a
2 changed files with 12 additions and 10 deletions

View file

@ -275,10 +275,12 @@ Item
{
id: upperHandleLabel
height: sliderRoot.handleSize + UM.Theme.getSize("default_margin").height
x: parent.x - parent.width - width
anchors.verticalCenter: parent.verticalCenter
target: Qt.point(sliderRoot.width, y + height / 2)
height: sliderRoot.handleSize + UM.Theme.getSize("small_margin").height
//x: parent.x
anchors.bottom: parent.top
anchors.bottomMargin: UM.Theme.getSize("narrow_margin").height
anchors.horizontalCenter: parent.horizontalCenter
target: Qt.point(parent.width / 2, parent.top)
visible: sliderRoot.activeHandle == parent
// custom properties
@ -397,4 +399,4 @@ Item
setValue: lowerHandle.setValueManually // connect callback functions
}
}
}
}