Skip to content

Commit

Permalink
code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Apr 13, 2016
1 parent 3d8749f commit 492709f
Show file tree
Hide file tree
Showing 66 changed files with 371 additions and 394 deletions.
2 changes: 1 addition & 1 deletion libmscore/accidental.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ bool Accidental::setProperty(P_ID propertyId, const QVariant& v)
// accessibleInfo
//---------------------------------------------------------

QString Accidental::accessibleInfo()
QString Accidental::accessibleInfo() const
{
return QString("%1: %2").arg(Element::accessibleInfo()).arg(qApp->translate("accidental", Accidental::subtypeUserName()));
}
Expand Down
2 changes: 1 addition & 1 deletion libmscore/accidental.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Accidental : public Element {
static AccidentalType value2subtype(AccidentalVal);
static AccidentalType name2subtype(const QString&);

QString accessibleInfo() override;
QString accessibleInfo() const override;
};

} // namespace Ms
Expand Down
5 changes: 3 additions & 2 deletions libmscore/ambitus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ Element* Ambitus::prevElement()
//---------------------------------------------------------
// accessibleInfo
//---------------------------------------------------------
QString Ambitus::accessibleInfo()

QString Ambitus::accessibleInfo() const
{
return tr("%1; Top pitch: %2%3; Bottom pitch: %4%5").arg(Element::accessibleInfo())\
.arg(tpc2name(topTpc(), NoteSpellingType::STANDARD, NoteCaseType::AUTO, false))\
Expand All @@ -722,7 +723,7 @@ QString Ambitus::accessibleInfo()
// screenReaderInfo
//---------------------------------------------------------

QString Ambitus::screenReaderInfo()
QString Ambitus::screenReaderInfo() const
{
return tr("%1; Top pitch: %2%3; Bottom pitch: %4%5").arg(Element::screenReaderInfo())\
.arg(tpc2name(topTpc(), NoteSpellingType::STANDARD, NoteCaseType::AUTO, true))\
Expand Down
4 changes: 2 additions & 2 deletions libmscore/ambitus.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ class Ambitus : public Element {
virtual void scanElements(void* data, void (*func)(void*, Element*), bool all=true) override;
virtual void setTrack(int val) override;
virtual void write(Xml&) const override;
virtual QString accessibleInfo() override;
virtual QString screenReaderInfo() override;
virtual QString accessibleInfo() const override;
virtual QString screenReaderInfo() const override;

// properties
QVariant getProperty(P_ID ) const;
Expand Down
2 changes: 1 addition & 1 deletion libmscore/articulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ qreal Articulation::mag() const
// accessibleInfo
//---------------------------------------------------------

QString Articulation::accessibleInfo()
QString Articulation::accessibleInfo() const
{
return QString("%1: %2").arg(Element::accessibleInfo()).arg(subtypeUserName());
}
Expand Down
4 changes: 2 additions & 2 deletions libmscore/articulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class Articulation : public Element {

bool playArticulation() const { return _playArticulation;}
void setPlayArticulation(bool val) { _playArticulation = val; }

QString channelName() const { return _channelName; }
void setChannelName(const QString& s) { _channelName = s; }

Expand All @@ -155,7 +155,7 @@ class Articulation : public Element {
_articulationType == ArticulationType::Longfermata ||
_articulationType == ArticulationType::Verylongfermata; }

QString accessibleInfo() override;
QString accessibleInfo() const override;
};

} // namespace Ms
Expand Down
Loading

0 comments on commit 492709f

Please sign in to comment.