Skip to content

Commit 2a12bd6

Browse files
authored
Merge pull request #26340 from krasko78/26338-LayoutBreakReadoutInStatusBar
26338: Display the specific layout break subtype name in the statusbar
2 parents 4b1c477 + e57c918 commit 2a12bd6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/engraving/dom/layoutbreak.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,15 @@ muse::TranslatableString LayoutBreak::subtypeUserName() const
229229
return TConv::userName(layoutBreakType());
230230
}
231231

232+
//---------------------------------------------------------
233+
// accessibleInfo
234+
//---------------------------------------------------------
235+
236+
String LayoutBreak::accessibleInfo() const
237+
{
238+
return translatedSubtypeUserName();
239+
}
240+
232241
void LayoutBreak::added()
233242
{
234243
IF_ASSERT_FAILED(score()) {

src/engraving/dom/layoutbreak.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class LayoutBreak final : public EngravingItem
7373
bool setProperty(Pid propertyId, const PropertyValue&) override;
7474
PropertyValue propertyDefault(Pid) const override;
7575

76+
String accessibleInfo() const override;
77+
7678
char16_t iconCode() const;
7779

7880
muse::draw::Font font() const;

0 commit comments

Comments
 (0)