Add "Update Current Profile" and "Reset Current Profile" menu items to profile dropdowns

CURA-970
This commit is contained in:
fieldOfView 2016-04-28 10:29:51 +02:00
parent d7aa8e71bf
commit f6ce963b73
4 changed files with 42 additions and 6 deletions

View file

@ -14,6 +14,8 @@ Item{
property int totalHeightProfileSetup: childrenRect.height
property Action manageProfilesAction
property Action addProfileAction
property Action updateProfileAction
property Action resetProfileAction
signal showTooltip(Item item, point location, string text)
signal hideTooltip()
@ -67,7 +69,7 @@ Item{
//Insert a separator between readonly and custom profiles
if(separatorIndex < 0 && index > 0) {
if(model.getItem(index-1).readOnly != model.getItem(index).readOnly) {
profileSelectionMenu.addSeparator();
profileSelectionMenu.insertSeparator(index);
separatorIndex = index;
}
}
@ -113,9 +115,16 @@ Item{
}
MenuSeparator { }
MenuItem {
action: base.updateProfileAction;
}
MenuItem {
action: base.resetProfileAction;
}
MenuItem {
action: base.addProfileAction;
}
MenuSeparator { }
MenuItem {
action: base.manageProfilesAction;
}