mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 15:54:32 +08:00
Add label to machine name input field
This commit is contained in:
parent
002605f666
commit
d145eb1f67
@ -46,7 +46,7 @@ UM.Dialog
|
|||||||
left: parent.left;
|
left: parent.left;
|
||||||
top: parent.top;
|
top: parent.top;
|
||||||
right: parent.right;
|
right: parent.right;
|
||||||
bottom: machineName.top;
|
bottom: machineNameRow.top;
|
||||||
bottomMargin: UM.Theme.getSize("default_margin").height
|
bottomMargin: UM.Theme.getSize("default_margin").height
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,9 +171,21 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: machineNameRow
|
||||||
|
anchors.bottom:parent.bottom
|
||||||
|
spacing: UM.Theme.getSize("default_margin").width
|
||||||
|
|
||||||
|
Label
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@label", "Printer Name:")
|
||||||
|
anchors.verticalCenter: machineName.verticalCenter
|
||||||
|
}
|
||||||
|
|
||||||
TextField
|
TextField
|
||||||
{
|
{
|
||||||
id: machineName;
|
id: machineName
|
||||||
text: getMachineName()
|
text: getMachineName()
|
||||||
implicitWidth: UM.Theme.getSize("standard_list_input").width
|
implicitWidth: UM.Theme.getSize("standard_list_input").width
|
||||||
maximumLength: 40
|
maximumLength: 40
|
||||||
@ -185,7 +197,7 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
property var machine_name_validator: Cura.MachineNameValidator { }
|
property var machine_name_validator: Cura.MachineNameValidator { }
|
||||||
anchors.bottom:parent.bottom
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Button
|
Button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user