Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More properties for MenuItem: enabled, icon #7791

Open
ogoffart opened this issue Mar 4, 2025 · 0 comments
Open

More properties for MenuItem: enabled, icon #7791

ogoffart opened this issue Mar 4, 2025 · 0 comments
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request

Comments

@ogoffart
Copy link
Member

ogoffart commented Mar 4, 2025

We should add a way to disable MenuItem and have an Icon

Menu {
   MenuItem { 
       title: @tr("Copy");
       icon: @image-url("icons/copy.png")
       enabled: root.has-selection;
       activated => { ... }
   } 
}
@ogoffart ogoffart added a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-slint Compiler for the .slint language (mO,bF) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant