Add the compatible machine families property to printerOutputModel

This is used by the cluster to indicate by which families of printers the job can be displayed

CL-894
This commit is contained in:
Jaime van Kessel 2018-09-03 10:03:11 +02:00
parent 98d0ad6c27
commit fb1033ad99
4 changed files with 39 additions and 5 deletions

View file

@ -290,7 +290,30 @@ Item
onOpened: visible = true
}
Row
{
id: printerFamilyPills
spacing: 0.5 * UM.Theme.getSize("default_margin").width
anchors
{
left: parent.left
right: parent.right
bottom: extrudersInfo.top
bottomMargin: UM.Theme.getSize("default_margin").height
}
height: childrenRect.height
Repeater
{
model: printJob.compatibleMachineFamilies
delegate: PrinterFamilyPill
{
text: modelData
color: UM.Theme.getColor("viewport_background")
padding: 3
}
}
}
// PrintCore && Material config
Row
{