mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 06:23:59 -06:00
WIP: Show full name of network printer types
This commit is contained in:
parent
de9f6f47bd
commit
764f7281c2
4 changed files with 30 additions and 7 deletions
|
@ -20,11 +20,14 @@ Button
|
|||
hoverEnabled: true
|
||||
|
||||
property bool selected: checked
|
||||
property bool printerTypeLabelAutoFit: false
|
||||
|
||||
property var outputDevice: null
|
||||
property var printerTypesList: []
|
||||
|
||||
property var updatePrinterTypesFunction: updatePrinterTypesList
|
||||
// This function converts the printer type string to another string.
|
||||
property var printerTypeLabelConversionFunction: Cura.MachineManager.getAbbreviatedMachineName
|
||||
|
||||
function updatePrinterTypesList()
|
||||
{
|
||||
|
@ -71,7 +74,8 @@ Button
|
|||
model: printerTypesList
|
||||
delegate: Cura.PrinterTypeLabel
|
||||
{
|
||||
text: Cura.MachineManager.getAbbreviatedMachineName(modelData)
|
||||
autoFit: printerTypeLabelAutoFit
|
||||
text: printerTypeLabelConversionFunction(modelData)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue