void InspectorRest::setElement(Element* e) { Rest* rest = static_cast<Rest*>(e); Segment* segment = rest->segment(); iElement->setElement(rest); iSegment->setElement(segment); small->setChecked(rest->small()); }
void InspectorRest::apply() { Rest* rest = static_cast<Rest*>(inspector->element()); Score* score = rest->score(); score->startCmd(); iElement->apply(); iSegment->apply(); bool val = small->isChecked(); if (val != rest->small()) score->undoChangeProperty(rest, P_SMALL, val); score->setLayoutAll(true); score->endCmd(); mscore->endCmd(); }