Skip to content
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

Add spacing between elements #1062

Merged
merged 1 commit into from Jul 24, 2014
Merged

Conversation

vgstef
Copy link
Contributor

@vgstef vgstef commented Jul 23, 2014

Use MuseScore Styles to add spacing between elements.
Also fix the staff lines that sometimes didn't fill all the panel when a measure was to narrow.

// If mesure width is too small, staff lines don't fill the whole panel
// So we redraw them until all the panel is covered
qreal staffWidth = e->width();
while (staffWidth < _width - _heightName * 1.5) {
Copy link
Contributor

Choose a reason for hiding this comment

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

looks hacky. Coudn't we do the same than you did for other elements, recreating it and make it the right width ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I admit. My idea was to avoid consuming CPU time by creating a new element, then deleteting it. But now updated my pull request. I clone the StaffLines then change it's width. More elegant.

lasconic added a commit that referenced this pull request Jul 24, 2014
@lasconic lasconic merged commit 1bd80d9 into musescore:master Jul 24, 2014
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.

None yet

2 participants