Exemplo n.º 1
0
RemoveStaff::RemoveStaff(const ScoreLocation &location)
    : QUndoCommand(QObject::tr("Remove Staff")),
      myLocation(location),
      myOriginalStaff(location.getStaff()),
      myIndex(location.getStaffIndex())
{
}
Exemplo n.º 2
0
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();
}