mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 05:35:14 +08:00
Show compatible printers for materials
Contributes to issue CURA-8585.
This commit is contained in:
parent
9c51d620b2
commit
fd026e472f
@ -415,6 +415,40 @@ Rectangle
|
|||||||
onLinkActivated: UM.UrlUtil.openUrl(link, ["http", "https"])
|
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
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user