Added delete button to cluster queue

CL-894
This commit is contained in:
Jaime van Kessel 2018-08-17 10:49:44 +02:00
parent db1d90ed9b
commit eb7d42a7f8
3 changed files with 18 additions and 2 deletions

View file

@ -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