Skip to content

Add tooltips to StyledTabButton#82

Open
ajuncosa wants to merge 1 commit into
musescore:mainfrom
ajuncosa:truncated-text
Open

Add tooltips to StyledTabButton#82
ajuncosa wants to merge 1 commit into
musescore:mainfrom
ajuncosa:truncated-text

Conversation

@ajuncosa

@ajuncosa ajuncosa commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Partially resolves: musescore/MuseScore#32604

Adds tooltips over truncated text on StyledTabButtons, without interfering with button interaction.

Related to: musescore/MuseScore#33765

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5eb26bee-0064-4329-a0fc-b6717aa778b1

📥 Commits

Reviewing files that changed from the base of the PR and between 6eadd9e and 2bf9534.

📒 Files selected for processing (1)
  • framework/uicomponents/qml/Muse/UiComponents/StyledTabButton.qml

📝 Walkthrough

Hidden review stack artifact

Walkthrough

This pull request adds a MouseArea overlay to StyledTabButton that manages tooltip display. The overlay hides the tooltip when the button is pressed without consuming the click event, and on mouse enter/leave shows the tooltip only when the label exists and is truncated; otherwise it hides the tooltip.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description references the linked issue (#32604) and explains the purpose (tooltips for truncated text without interfering with interaction), but lacks several template-required checklist items and CLA confirmation. Complete the PR description template by adding the CLA confirmation, checking all applicable checklist items, and confirming code follows guidelines and was tested.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add tooltips to StyledTabButton' clearly and concisely describes the main change, which is adding tooltip functionality to the StyledTabButton component.
Linked Issues check ✅ Passed The code change adds tooltip functionality to StyledTabButton for truncated text, which directly addresses the UI bug reported in issue #32604 about truncated text in Properties>Beam.
Out of Scope Changes check ✅ Passed All changes are contained to StyledTabButton.qml and directly implement tooltip behavior for truncated text as required by the linked issue, with no out-of-scope modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Truncated text in Properties>Beam in localized version (ES)

1 participant