Added icon for custom Menu items

This commit is contained in:
Aleksei S 2018-06-25 16:51:40 +02:00
parent f577789859
commit c4fa50a8fc
2 changed files with 8 additions and 4 deletions

View file

@ -568,9 +568,10 @@ Item
MenuItem
{
text: model.name
iconName: model.iconName
onTriggered:
{
customMenuItems.model.callMenuItemMethod(name, model.actions)
customMenuItems.model.callMenuItemMethod(name, model.actions, {"key": contextMenu.key})
}
}
onObjectAdded: contextMenu.insertItem(index, object)