mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Changed SettingView to show custom menu items
This commit is contained in:
parent
e087a05195
commit
0cf46ca48e
1 changed files with 21 additions and 0 deletions
|
@ -561,6 +561,27 @@ Item
|
||||||
visible: machineExtruderCount.properties.value > 1
|
visible: machineExtruderCount.properties.value > 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Instantiator
|
||||||
|
{
|
||||||
|
id: customMenuItems
|
||||||
|
model: Cura.SidebarCustomMenuItemsModel { }
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
text: model.name
|
||||||
|
onTriggered:
|
||||||
|
{
|
||||||
|
customMenuItems.model.callMenuItemMethod(name, model.actions)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onObjectAdded: contextMenu.insertItem(index, object)
|
||||||
|
onObjectRemoved: contextMenu.removeItem(object)
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuSeparator
|
||||||
|
{
|
||||||
|
visible: customMenuItems.count > 0
|
||||||
|
}
|
||||||
|
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
//: Settings context menu action
|
//: Settings context menu action
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue