https://bugs.kde.org/show_bug.cgi?id=472785

            Bug ID: 472785
           Summary: Properly deal with nested Actions in MenuDialog
    Classification: Frameworks and Libraries
           Product: frameworks-kirigami
           Version: 5.108.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: jackhill3...@gmail.com
                CC: notm...@gmail.com
  Target Milestone: Not decided

SUMMARY
Kirigami.MenuDialog does not know how to handle nested actions. Clicking these
actions currently does nothing.

STEPS TO REPRODUCE
1. Compile the following code and run it:

Controls.Button {
    text: "Open Menu"
    onClicked: testMenu.open()
}

Kirigami.Action {
    id: mainAction
    text: "Top Level"
    Kirigami.Action {
        text: "Sub1"
    }
    Kirigami.Action {
        text: "Sub2"
    }
}

Kirigami.MenuDialog {
    id: testMenu
    actions: [mainAction]
}

2. Click the button "Open Menu"
3. Click the menu item "Top Level"

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
The menu should update to show the nested actions in the list. This could be
implemented like a page stack where the old actions animate off-screen to the
left and the new actions appear from the right.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230724
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.4-1-default (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to