Add a disabled state to the expandable components

In this case, when the component is disabled, there is an optional message that will show. It works for instance when loading a gcode and the print setup panel has to be disabled.

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-10 14:17:56 +01:00
parent 90f822f683
commit 3f97f83c47
3 changed files with 110 additions and 57 deletions

View file

@ -16,6 +16,7 @@ Cura.ExpandableComponent
contentPadding: UM.Theme.getSize("default_lining").width
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
enabled: !preSlicedData
disabledText: catalog.i18nc("@label shown when we load a Gcode file", "Print setup disabled. G code file can not be modified."
UM.I18nCatalog
{