Skip to content

Commit

Permalink
reduce title of breath/caesura inspector to only contain "Breath" and…
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmoniker1 committed Dec 10, 2019
1 parent 29e66c9 commit 88227c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mscore/inspector/inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ void Inspector::update(Score* s)
if ((ee->isArticulation() && toArticulation(ee)->isOrnament() != toArticulation(element())->isOrnament()) ||
// a slur and a tie
(ee->isSlurTieSegment() && toSlurTieSegment(ee)->accessibleInfo() != toSlurTieSegment(element())->accessibleInfo()) ||
// a breath and a caesura (or different breaths)
(ee->isBreath() && toBreath(ee)->accessibleInfo() != toBreath(element())->accessibleInfo()) ||
// a breath and a caesura
(ee->isBreath() && toBreath(ee)->isCaesura() != toBreath(element())->isCaesura()) ||
// a staff text and a system text
((ee->isStaffText() || ee->isSystemText())
&& (ee->type() != element()->type()) || (ee->isSystemText() != element()->isSystemText())))
Expand Down Expand Up @@ -1251,13 +1251,13 @@ InspectorCaesura::InspectorCaesura(QWidget* parent)
Breath* b = toBreath(inspector->element());
bool sameTypes = true;
for (const auto& ee : *inspector->el()) {
if (ee->accessibleInfo() != b->accessibleInfo()) {
if (toBreath(ee)->isCaesura() != b->isCaesura()) {
sameTypes = false;
break;
}
}
if (sameTypes)
c.title->setText(b->accessibleInfo());
c.title->setText(b->isCaesura() ? tr("Caesura") : tr("Breath"));

const std::vector<InspectorItem> il = {
{ Pid::PAUSE, 0, c.pause, c.resetPause }
Expand Down

0 comments on commit 88227c3

Please sign in to comment.