initialize some values in element constructor

This commit is contained in:
Werner Schweer 2012-09-24 16:43:46 +02:00
parent 4c7c05a6ee
commit b2017bf751
3 changed files with 4 additions and 1 deletions

View file

@ -28,9 +28,10 @@
Bracket::Bracket(Score* s)
: Element(s)
{
_subtype = BRACKET_AKKOLADE;
h2 = 3.5 * spatium();
_column = 0;
_span = 1;
_column = 0;
yoff = 0.0;
setGenerated(true); // brackets are not saved
}

View file

@ -26,6 +26,7 @@
Glissando::Glissando(Score* s)
: Element(s)
{
_subtype = 0;
setFlags(ELEMENT_MOVABLE | ELEMENT_SELECTABLE);
_text = "gliss.";
_showText = true;

View file

@ -366,6 +366,7 @@ QPointF BSymbol::canvasPos() const
FSymbol::FSymbol(Score* s)
: Element(s)
{
_code = 0;
_font.setStyleStrategy(QFont::NoFontMerging);
}