void InspectorRest::dotClicked(int n) { Rest* rest = toRest(inspector->element()); if (rest == 0) return; if (rest->dots() > n) { NoteDot* dot = rest->dot(n); dot->score()->select(dot); dot->score()->update(); inspector->update(); } }
void InspectorNote::dot4Clicked() { Note* note = toNote(inspector->element()); if (note == 0) return; if (note->dots().size() > 3) { NoteDot* dot = note->dot(3); dot->score()->select(dot); inspector->setElement(dot); dot->score()->update(); } }
void InspectorNote::dot3Clicked() { Note* note = static_cast<Note*>(inspector->element()); if (note == 0) return; NoteDot* dot = note->dot(2); if (dot) { dot->score()->select(dot); inspector->setElement(dot); dot->score()->end(); } }