Volta::Volta(Score* s) : TextLineBase(s) { setBeginTextPlace(PlaceText::BELOW); setContinueTextPlace(PlaceText::BELOW); setBeginHookType(HookType::HOOK_90); setAnchor(Anchor::MEASURE); resetProperty(P_ID::BEGIN_HOOK_HEIGHT); resetProperty(P_ID::END_HOOK_HEIGHT); resetProperty(P_ID::LINE_WIDTH); resetProperty(P_ID::LINE_STYLE); resetProperty(P_ID::BEGIN_TEXT_OFFSET); resetProperty(P_ID::BEGIN_TEXT_ALIGN); }
TextLine::TextLine(Score* s) : TextLineBase(s) { initElementStyle(&textLineStyle); setPlacement(Placement::ABOVE); setBeginText(""); setContinueText(""); setEndText(""); setBeginTextOffset(QPointF(0,0)); setContinueTextOffset(QPointF(0,0)); setEndTextOffset(QPointF(0,0)); setLineVisible(true); setBeginHookType(HookType::NONE); setEndHookType(HookType::NONE); setBeginHookHeight(Spatium(1.5)); setEndHookHeight(Spatium(1.5)); resetProperty(Pid::BEGIN_TEXT_PLACE); resetProperty(Pid::CONTINUE_TEXT_PLACE); resetProperty(Pid::END_TEXT_PLACE); }