Implement a proper machine model and use it

This commit is contained in:
Arjen Hiemstra 2015-02-13 18:06:27 +01:00
parent dadeb87801
commit bb9db205fc

View file

@ -53,7 +53,9 @@ UM.MainWindow {
MenuItem {
text: model.name;
checkable: true;
checked: model.active;
exclusiveGroup: machineMenuGroup;
onTriggered: UM.Models.machinesModel.setActive(index)
}
onObjectAdded: machineMenu.insertItem(index, object)
onObjectRemoved: machineMenu.removeItem(object)