Skip to content

Port #32963 #32968

Merged
RomanPudashkin merged 1 commit intomusescore:4.7from
mike-spa:portStuff
Apr 9, 2026
Merged

Port #32963 #32968
RomanPudashkin merged 1 commit intomusescore:4.7from
mike-spa:portStuff

Conversation

@mike-spa
Copy link
Copy Markdown
Contributor

@mike-spa mike-spa commented Apr 9, 2026

Port: #32963

Summary by CodeRabbit

  • Bug Fixes
    • Refined positioning of diminuendo hairpin markings in music scores for improved visual alignment.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2bbf18df-c6d7-4a3c-b5a2-07fec26ec846

📥 Commits

Reviewing files that changed from the base of the PR and between 2a47884 and 1874305.

📒 Files selected for processing (1)
  • src/palette/internal/palettecreator.cpp

📝 Walkthrough

Walkthrough

The hairpin cell offset calculation in PaletteCreator::newDynamicsPalette is refined to assign distinct offsets based on hairpin type. CRESC_LINE retains QPointF(1, 0.25), DIM_LINE now uses QPointF(1, 0.0) instead of the previous shared offset, and other hairpin types keep QPointF(0, 0).

Changes

Cohort / File(s) Summary
Hairpin Cell Offset Adjustment
src/palette/internal/palettecreator.cpp
Refactored hairpin cell offset logic from binary check to three-way conditional to apply type-specific offsets: CRESC_LINE maintains QPointF(1, 0.25), DIM_LINE changes to QPointF(1, 0.0), others remain QPointF(0, 0).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • miiizen
🚥 Pre-merge checks | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is incomplete, containing only 'Port: #32963' without addressing required template sections like motivation, CLA confirmation, or testing details. Fill in the PR description template with issue reference, motivation for changes, checklist confirmations, and testing verification.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Port #32963' is vague and non-descriptive; it references an issue number but does not convey what the actual change is. Replace with a descriptive title summarizing the actual change, such as 'Adjust hairpin cell offsets for DIM_LINE dynamics'.

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

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

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

@RomanPudashkin RomanPudashkin merged commit c89b2a9 into musescore:4.7 Apr 9, 2026
13 checks passed
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.

2 participants