mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 21:59:37 +08:00
More QML for sending custom commands, not styled or tested yet
This commit is contained in:
parent
d7254ff8d0
commit
866e99bcbb
@ -450,6 +450,43 @@ Item
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
Row
|
||||
{
|
||||
TextInput
|
||||
{
|
||||
id: customCommandInput
|
||||
|
||||
font: UM.Theme.getFont("default")
|
||||
color: !enabled ? UM.Theme.getColor("setting_control_disabled_text") : UM.Theme.getColor("setting_control_text")
|
||||
selectByMouse: true
|
||||
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: UM.Theme.getSize("setting_unit_margin").width
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
renderType: Text.NativeRendering
|
||||
}
|
||||
}
|
||||
|
||||
Row
|
||||
{
|
||||
Button
|
||||
{
|
||||
id: sendCustomCommandButton
|
||||
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.margins: UM.Theme.getSize("default_margin").width
|
||||
|
||||
onClicked: {
|
||||
printerModel.sendCustomCommand(customCommandInput.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ListModel
|
||||
|
Loading…
x
Reference in New Issue
Block a user