Skip to content

Conversation

@mathesoncalum
Copy link
Contributor

Resolves: #32068

String tunings are handled by prepareDropMeasureAnchorElement in NotationInteraction. Removing the logic from Measure::acceptDrop in 427f6d6 means that we never set a target measure for the drop. The changes in this PR revert to what we had before this commit (with a couple tweaks).

Curious to hear your thoughts too @XiaoMigros if you get a chance - copy/pasting string tunings still appears to work as expected after these changes.

Copy link
Member

@cbjeukendrup cbjeukendrup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me, one question:

return nullptr;
}
staffIdx = staff->idx();
e->setParent(first());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to ensure that it is a "chord rest or time tick" segment and not a random key signature header segment etc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider 'reparenting' these elements to measures instead, since that's what they can be added to? Last I checked, regardless of which segment they are anchored to, they are laid out at the start of the measure (so anchoring should be disabled accordingly, too).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ensure that it is a "chord rest or time tick segment"...

Updated now @cbjeukendrup

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a good point @XiaoMigros - definitely worth considering. We'll need to discuss a couple of design points before going ahead with that though, so for the purposes of 4.7 we'll push ahead with the current version of string tunings. Thanks!

@XiaoMigros
Copy link
Contributor

Yes, looks good. I believe I only tested copy/paste thoroughly, hence the oversight. Thanks for catching this!

@mathesoncalum mathesoncalum force-pushed the 32068-string_tuning_drop branch from 2b8f753 to 9873e97 Compare February 9, 2026 14:05
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.

Guitar String Tuning drag/drop on score doesn't work in 4.7

3 participants