Bug 472785 - Properly deal with nested Actions in MenuDialog
Summary: Properly deal with nested Actions in MenuDialog
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.108.0
Platform: Other Linux
: NOR normal
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-29 22:06 UTC by Jack Hill
Modified: 2024-09-08 20:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2023-07-29 22:06:55 UTC
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