void InspectorBarLine::presetDefaultClicked() { BarLine* bl = toBarLine(inspector->element()); Score* score = bl->score(); score->startCmd(); bl->undoResetProperty(P_ID::BARLINE_SPAN); bl->undoResetProperty(P_ID::BARLINE_SPAN_FROM); bl->undoResetProperty(P_ID::BARLINE_SPAN_TO); score->endCmd(); }
void InspectorBarLine::presetDefaultClicked() { Score* score = inspector->element()->score(); score->startCmd(); BarLine* bl; for (Element* e : *inspector->el()) { if (e->isBarLine()) { bl = toBarLine(e); bl->undoResetProperty(Pid::BARLINE_SPAN); bl->undoResetProperty(Pid::BARLINE_SPAN_FROM); bl->undoResetProperty(Pid::BARLINE_SPAN_TO); } } score->endCmd(); }