Support sections in ModelContextMenu
CHANGELOG: PlasmaComponents ModelContextMenu can now create Menu sections REVIEW: 124909
This commit is contained in:
parent
cc885eb652
commit
25748ca575
@ -71,6 +71,7 @@ PlasmaComponents.ContextMenu {
|
||||
text: typeof(modelData) != "undefined" ? modelData.text : model.display
|
||||
icon: typeof(modelData) != "undefined" ? modelData.icon : model.decoration
|
||||
separator: typeof(modelData) != "undefined" ? modelData.separator : model.separator === true
|
||||
section: typeof(modelData) != "undefined" ? modelData.section : modelData.section === true
|
||||
onClicked: {
|
||||
menu.clicked(typeof(modelData) != "undefined" ? modelData : model)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user