Support sections in ModelContextMenu

CHANGELOG: PlasmaComponents ModelContextMenu can now create Menu sections

REVIEW: 124909
This commit is contained in:
Kai Uwe Broulik 2015-08-24 23:14:31 +02:00
parent cc885eb652
commit 25748ca575

View File

@ -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)
}