Skip to content

Commit

Permalink
Merge pull request #3198 from MarcSabatella/211461-other-dynamics
Browse files Browse the repository at this point in the history
fix #211461: show text of other dynamics in status line
  • Loading branch information
lasconic committed Jun 15, 2017
2 parents a846aa1 + dc0e87c commit 4760b05
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion libmscore/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,19 @@ QVariant Dynamic::propertyDefault(P_ID id) const

QString Dynamic::accessibleInfo() const
{
return QString("%1: %2").arg(Element::accessibleInfo()).arg(this->dynamicTypeName());
QString s;

if (dynamicType() == Dynamic::Type::OTHER) {
s = plainText().simplified();
if (s.length() > 20) {
s.truncate(20);
s += "...";
}
}
else {
s = dynamicTypeName();
}
return QString("%1: %2").arg(Element::accessibleInfo()).arg(s);
}

}
Expand Down

0 comments on commit 4760b05

Please sign in to comment.