Skip to content

Commit

Permalink
shortcuts for select similar should work
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Nov 7, 2014
1 parent 28a4ebd commit 93e1d5b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/lyrics.h
Expand Up @@ -64,8 +64,8 @@ class Lyrics : public Text {

virtual void write(Xml& xml) const override;
virtual void read(XmlReader&) override;
virtual int subtype() const { return _no; }
virtual QString subtypeName() const { return tr("Verse %1").arg(_no + 1); }
virtual int subtype() const override { return _no; }
virtual QString subtypeName() const override { return tr("Verse %1").arg(_no + 1); }
void setNo(int n);
int no() const { return _no; }
void setSyllabic(Syllabic s) { _syllabic = s; }
Expand Down
12 changes: 12 additions & 0 deletions mscore/scoreview.cpp
Expand Up @@ -2600,6 +2600,18 @@ void ScoreView::cmd(const QAction* a)
startEdit(e);
}
}
else if (cmd == "select-similar") {
Element* e = _score->selection().element();
mscore->selectSimilar(e, false);
}
else if (cmd == "select-similar-staff") {
Element* e = _score->selection().element();
mscore->selectSimilar(e, true);
}
else if (cmd == "select-dialog") {
Element* e = _score->selection().element();
mscore->selectElementDialog(e);
}
else if (cmd == "play") {
if (seq && seq->canStart()) {
if (noteEntryMode()) // force out of entry mode
Expand Down

0 comments on commit 93e1d5b

Please sign in to comment.