Add a new property to the ActionButton to indicate whether the button

has a fixed width or the width will be dependant on the content.

Contributes to CURA-5786.
This commit is contained in:
Diego Prado Gesto 2018-11-06 15:14:27 +01:00
parent b6b60702c0
commit 5dddcbd666
5 changed files with 13 additions and 0 deletions

View file

@ -86,6 +86,7 @@ Column
id: prepareButton
width: parent.width
height: UM.Theme.getSize("action_panel_button").height
fixedWidthMode: true
text:
{
if ([UM.Backend.NotStarted, UM.Backend.Error].indexOf(widget.backendState) != -1)