Show compatible printers for materials

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

View File

@ -415,6 +415,40 @@ Rectangle
onLinkActivated: UM.UrlUtil.openUrl(link, ["http", "https"])
}
Column //Separate column to have no spacing between compatible printers.
{
id: compatiblePrinterColumn
width: parent.width - parent.padding * 2
visible: packageData.packageType === "material"
spacing: 0
Label
{
width: parent.width
text: catalog.i18nc("@header", "Compatible printers")
font: UM.Theme.getFont("medium_bold")
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
Repeater
{
model: packageData.compatiblePrinters
Label
{
width: compatiblePrinterColumn.width
text: modelData
font: UM.Theme.getFont("medium")
color: UM.Theme.getColor("text")
elide: Text.ElideRight
}
}
}
Cura.SecondaryButton
{
anchors.horizontalCenter: parent.horizontalCenter