Actions are now added as buttons to machinePages

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-20 13:46:05 +02:00
parent 83c1ee8082
commit 8237047907
4 changed files with 29 additions and 8 deletions

View file

@ -41,6 +41,19 @@ UM.ManagementPage
anchors.fill: parent;
spacing: UM.Theme.getSize("default_margin").height;
Row
{
Repeater
{
id: machineActionRepeater
model: Cura.MachineActionManager.getSupportedActions(Cura.MachineManager.activeDefinitionId)
Button
{
text: machineActionRepeater.model[index].label;
}
}
}
Label
{
text: base.currentItem && base.currentItem.name ? base.currentItem.name : ""