initialize some values in element constructor
This commit is contained in:
parent
4c7c05a6ee
commit
b2017bf751
3 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
Glissando::Glissando(Score* s)
|
||||
: Element(s)
|
||||
{
|
||||
_subtype = 0;
|
||||
setFlags(ELEMENT_MOVABLE | ELEMENT_SELECTABLE);
|
||||
_text = "gliss.";
|
||||
_showText = true;
|
||||
|
|
|
@ -366,6 +366,7 @@ QPointF BSymbol::canvasPos() const
|
|||
FSymbol::FSymbol(Score* s)
|
||||
: Element(s)
|
||||
{
|
||||
_code = 0;
|
||||
_font.setStyleStrategy(QFont::NoFontMerging);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue