Skip to content

Commit

Permalink
'subtype' property
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMigros authored and igorkorsukov committed Dec 29, 2023
1 parent 92f76dc commit fed6901
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engraving/dom/clef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,15 @@ String Clef::accessibleInfo() const
return mtrc("engraving", TConv::translatedUserName(clefType()));
}

//---------------------------------------------------------
// subtypeUserName
//---------------------------------------------------------

TranslatableString Clef::subtypeUserName() const
{
return TConv::userName(clefType());
}

//---------------------------------------------------------
// clear
//---------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions src/engraving/dom/clef.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class Clef final : public EngravingItem
ClefType clefType() const;
void setClefType(ClefType i);

int subtype() const override { return int(clefType()); }
TranslatableString subtypeUserName() const override;

void setForInstrumentChange(bool forInstrumentChange) { m_forInstrumentChange = forInstrumentChange; }
bool forInstrumentChange() const { return m_forInstrumentChange; }

Expand Down

0 comments on commit fed6901

Please sign in to comment.