Skip to content

Commit

Permalink
Fix GH#22020: Missing reset to default buttons in style
Browse files Browse the repository at this point in the history
Backport of musescore#24082
  • Loading branch information
mtuto81 authored and Jojo-Schmitz committed Aug 28, 2024
1 parent 5061e9c commit 7a67807
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mscore/editstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ EditStyle::EditStyle(Score* s, QWidget* parent)
{ Sid::allCapsNoteNames, false, allCapsNoteNames, 0 },
{ Sid::concertPitch, false, concertPitch, 0 },
{ Sid::createMultiMeasureRests, false, multiMeasureRests, 0 },
{ Sid::minEmptyMeasures, false, minEmptyMeasures, 0 },
{ Sid::minMMRestWidth, false, minMeasureWidth, resetMinMMRestWidth },
{ Sid::mmRestNumberPos, false, mmRestNumberPos, resetMMRestNumberPos },
{ Sid::minEmptyMeasures, false, minEmptyMeasures, resetMinEmptyMeasures },
{ Sid::minMMRestWidth, false, minMeasureWidth, resetMinMMRestWidth },
{ Sid::mmRestNumberPos, false, mmRestNumberPos, resetMMRestNumberPos },
{ Sid::hideEmptyStaves, false, hideEmptyStaves, 0 },
{ Sid::dontHideStavesInFirstSystem, false, dontHideStavesInFirstSystem, 0 },
{ Sid::enableIndentationOnFirstSystem, false, enableIndentationOnFirstSystem, 0 },
Expand Down
17 changes: 17 additions & 0 deletions mscore/editstyle.ui
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,23 @@
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QToolButton" name="resetMinEmptyMeasures">
<property name="toolTip">
<string>Reset to default</string>
</property>
<property name="accessibleName">
<string>Reset 'Minimum number of empty measures' value</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="musescore.qrc">
<normaloff>:/data/icons/edit-reset.svg</normaloff>:/data/icons/edit-reset.svg</iconset>
</property>
</widget>
</item>
</layout>
</widget>
</item>
Expand Down

0 comments on commit 7a67807

Please sign in to comment.