Skip to content

ToolBarLayout: Add support for actions that are separators

Joshua Goins requested to merge work/redstrate/separator-delegates into master

This adds a new delegate you set in ToolBarLayout, for creating actions that are actually separators.

Screenshot_09_035304

 header: Kirigami.ActionToolBar {

        actions: [
            Kirigami.Action {
                text: i18n("New")
            },
            Kirigami.Action {
                text: i18n("Open…")
            },
            Kirigami.Action {
                text: textEditor.document.fileUrl == "" ? i18n("Save As…") : i18n("Save")
            },
            Kirigami.Action {
                separator: true
            },
...

Merge request reports

Loading