bool Glissando::setProperty(P_ID propertyId, const QVariant& v) { switch (propertyId) { case P_ID::GLISS_TYPE: setGlissandoType(Type(v.toInt())); break; case P_ID::GLISS_TEXT: setText(v.toString()); break; case P_ID::GLISS_SHOW_TEXT: setShowText(v.toBool()); break; case P_ID::GLISSANDO_STYLE: setGlissandoStyle(MScore::GlissandoStyle(v.toInt())); break; case P_ID::PLAY: setPlayGlissando(v.toBool()); break; default: if (!SLine::setProperty(propertyId, v)) return false; break; } score()->setLayoutAll(); return true; }
bool Glissando::setProperty(P_ID propertyId, const QVariant& v) { switch (propertyId) { case P_GLISS_TYPE: setGlissandoType(GlissandoType(v.toInt())); break; case P_GLISS_TEXT: setText(v.toString()); break; case P_GLISS_SHOW_TEXT: setShowText(v.toBool()); break; default: if (!Element::setProperty(propertyId, v)) return false; break; } score()->setLayoutAll(true); return true; }