RemoveStaff::RemoveStaff(const ScoreLocation &location) : QUndoCommand(QObject::tr("Remove Staff")), myLocation(location), myOriginalStaff(location.getStaff()), myIndex(location.getStaffIndex()) { }
void Caret::handleSelectionChanged(const ScoreLocation &location) { // Ignore mouse clicks while in playback mode. if (myInPlaybackMode) return; myLocation.setSystemIndex(location.getSystemIndex()); myLocation.setStaffIndex(location.getStaffIndex()); myLocation.setPositionIndex(location.getPositionIndex()); myLocation.setSelectionStart(location.getSelectionStart()); myLocation.setString(location.getString()); onLocationChanged(); }