DelegateContextMenu: Add support for separators in the mobile menu too
This commit is contained in:
@@ -357,15 +357,30 @@ Loader {
|
|||||||
id: listViewAction
|
id: listViewAction
|
||||||
model: root.actions
|
model: root.actions
|
||||||
|
|
||||||
FormCard.FormButtonDelegate {
|
DelegateChooser {
|
||||||
icon.name: modelData.icon.name
|
role: "separator"
|
||||||
icon.color: modelData.icon.color ?? undefined
|
DelegateChoice {
|
||||||
enabled: modelData.enabled
|
roleValue: true
|
||||||
visible: modelData.visible
|
|
||||||
text: modelData.text
|
FormCard.FormDelegateSeparator {
|
||||||
onClicked: {
|
visible: modelData.visible
|
||||||
modelData.triggered();
|
}
|
||||||
root.item.close();
|
}
|
||||||
|
|
||||||
|
DelegateChoice {
|
||||||
|
roleValue: false
|
||||||
|
|
||||||
|
FormCard.FormButtonDelegate {
|
||||||
|
icon.name: modelData.icon.name
|
||||||
|
icon.color: modelData.icon.color ?? undefined
|
||||||
|
enabled: modelData.enabled
|
||||||
|
visible: modelData.visible
|
||||||
|
text: modelData.text
|
||||||
|
onClicked: {
|
||||||
|
modelData.triggered();
|
||||||
|
root.item.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user