Show list of compatible support materials

Contributes to issue CURA-8585.
This commit is contained in:
Ghostkeeper 2021-11-30 18:13:06 +01:00
parent fd026e472f
commit cfdb01caaf
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -449,6 +449,40 @@ Rectangle
}
}
Column
{
id: compatibleSupportMaterialColumn
width: parent.width - parent.padding * 2
visible: packageData.packageType === "material"
spacing: 0
Label
{
width: parent.width
text: catalog.i18nc("@header", "Compatible support materials")
font: UM.Theme.getFont("medium_bold")
color: UM.THeme.getColor("text")
elide: Text.ElideRight
}
Repeater
{
model: packageData.compatibleSupportMaterials
Label
{
width: compatibleSupportMaterialColumn.width
text: modelData
font: UM.Theme.getFont("medium")
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
}
Cura.SecondaryButton
{
anchors.horizontalCenter: parent.horizontalCenter