-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
[5.0b1] Set the width of a Menu to fit the widest MenuItem #800
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # UM/Qt/qml/UM/Menu.qml
fieldOfView
force-pushed
the
fix_menu_width
branch
from
March 25, 2022 06:32
be8e244
to
6a2aab7
Compare
Now without binding loops for menus containing menuitems with a shortcut or submenu indicator. |
nallath
approved these changes
Mar 25, 2022
Nope, sorry, still binding loops :(
|
Dang it... Back to the drawing board. |
Back from the drawing-board... Did I gt them all now? I have changed the base branch to 5.0, because I think this is a bug fix against the 1st beta. Let me know if I should change it back to master. |
fieldOfView
changed the title
Set the width of a Menu to fit the widest MenuItem
[5.0b1] Set the width of a Menu to fit the widest MenuItem
Apr 28, 2022
CURA-9218 |
nallath
approved these changes
Apr 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a width to Menu.qml so the Menu is wide enough to fit the widest MenuItem. This way MenuItems don't need to be elided, which causes confusion about the interactivity of MenuItems ending in an ellipsis (
...
)The technique is copied from here: https://martin.rpdev.net/2018/03/13/qt-quick-controls-2-automatically-set-the-width-of-menus.html
This PR is a partial fix for #799