DelegateContextMenu: Add support for separators in the mobile menu too
This commit is contained in:
@@ -357,6 +357,19 @@ Loader {
|
|||||||
id: listViewAction
|
id: listViewAction
|
||||||
model: root.actions
|
model: root.actions
|
||||||
|
|
||||||
|
DelegateChooser {
|
||||||
|
role: "separator"
|
||||||
|
DelegateChoice {
|
||||||
|
roleValue: true
|
||||||
|
|
||||||
|
FormCard.FormDelegateSeparator {
|
||||||
|
visible: modelData.visible
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DelegateChoice {
|
||||||
|
roleValue: false
|
||||||
|
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
icon.name: modelData.icon.name
|
icon.name: modelData.icon.name
|
||||||
icon.color: modelData.icon.color ?? undefined
|
icon.color: modelData.icon.color ?? undefined
|
||||||
@@ -369,6 +382,8 @@ Loader {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: root.nestedActions
|
model: root.nestedActions
|
||||||
|
|||||||
Reference in New Issue
Block a user