Skip to content

Commit

Permalink
Fix #22694: In the Staff Properties dlg box, when the instrument is c…
Browse files Browse the repository at this point in the history
…hanged, the list of available staff types is not updated.

(Also made more room for longer staff type names and longer list in the drop list properties)
  • Loading branch information
mgavioli committed Sep 21, 2013
1 parent c135292 commit 5b3eba2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions mscore/editstaff.cpp
Expand Up @@ -274,6 +274,7 @@ void EditStaff::showInstrumentDialog()
if (si.exec()) {
instrument = Instrument::fromTemplate(si.instrTemplate());
updateInstrument();
fillStaffTypeCombo();
}
}

Expand Down
12 changes: 11 additions & 1 deletion mscore/editstaff.ui
Expand Up @@ -589,7 +589,14 @@
</widget>
</item>
<item row="0" column="5">
<widget class="QComboBox" name="staffType"/>
<widget class="QComboBox" name="staffType">
<property name="maxVisibleItems">
<number>16</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
</widget>
</item>
<item row="0" column="4">
<widget class="QLabel" name="label_12">
Expand Down Expand Up @@ -633,6 +640,9 @@
</item>
<item row="1" column="5">
<widget class="QDoubleSpinBox" name="spinExtraDistance">
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="suffix">
<string>sp</string>
</property>
Expand Down

0 comments on commit 5b3eba2

Please sign in to comment.