mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 13:17:51 -06:00
Added delete button to cluster queue
CL-894
This commit is contained in:
parent
db1d90ed9b
commit
eb7d42a7f8
3 changed files with 18 additions and 2 deletions
|
@ -135,7 +135,7 @@ Item
|
|||
//y: configurationSelector.height - UM.Theme.getSize("default_lining").height
|
||||
//x: configurationSelector.width - width
|
||||
width: 200
|
||||
height: childrenRect.height
|
||||
height: contentItem.height + 2 * padding
|
||||
visible: false
|
||||
padding: UM.Theme.getSize("default_lining").width
|
||||
transformOrigin: Popup.Top
|
||||
|
@ -145,17 +145,27 @@ Item
|
|||
height: childrenRect.height
|
||||
Button
|
||||
{
|
||||
id: sendToTopButton
|
||||
text: "Send to top"
|
||||
onClicked: OutputDevice.sendJobToTop(printJob.key)
|
||||
width: parent.width
|
||||
enabled: OutputDevice.printJobs[0].key != printJob.key
|
||||
}
|
||||
Button
|
||||
{
|
||||
id: deleteButton
|
||||
text: "Delete"
|
||||
onClicked: OutputDevice.deleteJobFromQueue(printJob.key)
|
||||
width: parent.width
|
||||
anchors.top: sendToTopButton.bottom
|
||||
}
|
||||
}
|
||||
|
||||
background: Rectangle
|
||||
{
|
||||
color: UM.Theme.getColor("setting_control")
|
||||
border.color: UM.Theme.getColor("setting_control_border")
|
||||
height: popup.height
|
||||
}
|
||||
|
||||
exit: Transition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue