Make the expandable content header to be a common header for every expandable component.

Contributes to CURA-5941.
This commit is contained in:
Diego Prado Gesto 2018-12-10 13:36:06 +01:00
parent dff364ee30
commit af37f51cf8
7 changed files with 64 additions and 101 deletions

View file

@ -11,10 +11,11 @@ Cura.ExpandableComponent
{
id: printSetupSelector
property string enabledText: catalog.i18nc("@label:Should be short", "On")
property string disabledText: catalog.i18nc("@label:Should be short", "Off")
property bool preSlicedData: PrintInformation.preSliced
contentPadding: UM.Theme.getSize("default_lining").width
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
enabled: !preSlicedData
UM.I18nCatalog
{
@ -22,10 +23,7 @@ Cura.ExpandableComponent
name: "cura"
}
headerItem: PrintSetupSelectorHeader
{
anchors.fill: parent
}
headerItem: PrintSetupSelectorHeader {}
Cura.ExtrudersModel
{