Skip to content

Fix #29471: Context menus in undocked panels - #29512

Merged
RomanPudashkin merged 1 commit into
musescore:masterfrom
mathesoncalum:29471-broken_context_menu
Aug 27, 2025
Merged

RomanPudashkin merged 1 commit into
musescore:masterfrom
mathesoncalum:29471-broken_context_menu

Conversation

@mathesoncalum

Copy link
Copy Markdown
Contributor

Resolves: #29471

Addresses an oversight from #29249 - we cant bind contextMenuModel like this. The approach used in this solution is largely the same as the one used for toolbar components in DockTabBar.qml.

@cbjeukendrup

Copy link
Copy Markdown
Contributor

Ah yeah... sad that this is necessary. But it is.

Or maybe something like tabBar.currentItem?.model?.contextMenuModel works as a binding?

@mathesoncalum

Copy link
Copy Markdown
Contributor Author

Hmm, quickly checked and couldn't quite get it to work as a one-liner... Either way, I'm not so keen on the idea of titleBar referencing parts of tabBar since they serve different purposes.

@zacjansheski

This comment was marked as off-topic.

@zacjansheski

Copy link
Copy Markdown
Contributor

Tested on MacOS 15, Windows 11, Ubuntu 22.04.3. Approved
#29471 FIXED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Undocked panels three-dot menu broken

4 participants