fix #25112 export slur on grace notes
fix #25112: import slur on grace notes
Added error checking to pa_context_connect for better debugging
Switched printf to qDebug to comply with pull request
fix #25341: not enough space before chord with accidental and offset note
fix #25342: space from time signature to accidental
temporary fix for test
fix tests
don't set stretchDistance after time signature
Merge pull request #834 from MarcSabatella/25341-bar-distance

fix #25341: distances from barline & time signature to first note with accidentals
Fix #14576 : hiding courtesy time sig corrupts score

See http://musescore.org/en/node/14576 for discussion and examples.

1) Edited courtesy time sig (in any parameter: visibility, colour, text, ...) are saved to the score
2) When read back from file, such a time sig is not recognized as courtesy time sig
3) If the edited courtesy time sig no longer is at the end of a system, it is not removed.

The straight approach could have been to disable any editing of courtesy time sig. Rather than loosing this flexibility, I tried to improve the management of courtesy sigs:

1) not changed
2) when reading a time sig, if not at the beginning of a measure, now it is turned into a courtesy time sig
3) courtesy time sig removal now depends on its position in the system and not on the generated status.

This patch also do the same changes, in the same code areas, for courtesy key signs, as they behave in a very similar way.
Fix compilation errors ( :( ).
fix #25424: ottava playback solved
Merge pull request #835 from jasonbcox/add_missing_pa_errorcheck

Added error checking to pa_context_connect for better debugging
fix #25426
Fix 25423 - Issues with staff types in parts

Issues:
- Creating part(s) for a score adds a whole set of staff types for each created part
- Editing staff types gives unexpected results in part staves and may cause crash

Fixes:
- New staff types are created only for the root score, not for linked parts
- When staff types are edited, the updated staff types are set into the root score staves as well as in the staves linked to them.
dont allow removal of courtesy timesigs
fix bashism. Thanks @Jojo-Schmitz
Fix part tests: all reference scores contained the duplicated staff styles
better fix for MacOSX test in vtest