Merge branch '4.6'

This commit is contained in:
Ghostkeeper 2020-04-02 17:21:03 +02:00
commit 4f50f42796
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
5 changed files with 27 additions and 4 deletions

View file

@ -86,10 +86,20 @@ Button
renderType: Text.NativeRendering
height: parent.height
anchors.verticalCenter: parent.verticalCenter
width: fixedWidthMode ? button.width - button.leftPadding - button.rightPadding : ((maximumWidth != 0 && contentWidth > maximumWidth) ? maximumWidth : undefined)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
Binding
{
// When settting width directly, an unjust binding loop warning would be triggered,
// because button.width is part of this expression.
// Using parent.width is fine in fixedWidthMode.
target: buttonText
property: "width"
value: button.fixedWidthMode ? button.width - button.leftPadding - button.rightPadding
: ((maximumWidth != 0 && contentWidth > maximumWidth) ? maximumWidth : undefined)
}
}
//Right side icon. Only displayed if isIconOnRightSide.

View file

@ -15,6 +15,7 @@ import Cura 1.0 as Cura
Item
{
id: base
width: actionPanelWidget.width + additionalComponents.width
height: childrenRect.height
visible: CuraApplication.platformActivity