Skip to content

Commit

Permalink
fix #17941 expose stem width in style editor
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Mar 8, 2013
1 parent 8210fb8 commit 58b3ea2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 7 deletions.
4 changes: 2 additions & 2 deletions mscore/editstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ void EditStyle::getValues()
lstyle.set(ST_timesigLeftMargin, Spatium(timesigLeftMargin->value()));
lstyle.set(ST_clefKeyRightMargin, Spatium(clefKeyRightMargin->value()));
lstyle.set(ST_clefBarlineDistance, Spatium(clefBarlineDistance->value()));
// lstyle.set(ST_beginRepeatLeftMargin, Spatium(beginRepeatLeftMargin->value()));
lstyle.set(ST_staffLineWidth, Spatium(staffLineWidth->value()));
lstyle.set(ST_beamWidth, Spatium(beamWidth->value()));
lstyle.set(ST_beamDistance, beamDistance->value());
Expand All @@ -226,7 +225,6 @@ void EditStyle::getValues()
lstyle.set(ST_smallStaffMag, smallStaffSize->value() * 0.01);
lstyle.set(ST_smallNoteMag, smallNoteSize->value() * 0.01);
lstyle.set(ST_smallClefMag, smallClefSize->value() * 0.01);
// lstyle.set(ST_pageFillLimit, pageFillThreshold->value() * 0.01);
lstyle.set(ST_lastSystemFillLimit, lastSystemFillThreshold->value() * 0.01);
lstyle.set(ST_hairpinY, Spatium(hairpinY->value()));
lstyle.set(ST_hairpinWidth, Spatium(hairpinLineWidth->value()));
Expand Down Expand Up @@ -260,6 +258,7 @@ void EditStyle::getValues()
lstyle.set(ST_accidentalDistance, Spatium(accidentalDistance->value()));
lstyle.set(ST_dotNoteDistance, Spatium(noteDotDistance->value()));
lstyle.set(ST_dotDotDistance, Spatium(dotDotDistance->value()));
lstyle.set(ST_stemWidth, Spatium(stemWidth->value()));
lstyle.set(ST_ledgerLineWidth, Spatium(ledgerLineWidth->value()));
lstyle.set(ST_ledgerLineLength, Spatium(ledgerLineLength->value()));

Expand Down Expand Up @@ -474,6 +473,7 @@ void EditStyle::setValues()
accidentalDistance->setValue(lstyle.valueS(ST_accidentalDistance).val());
noteDotDistance->setValue(lstyle.valueS(ST_dotNoteDistance).val());
dotDotDistance->setValue(lstyle.valueS(ST_dotDotDistance).val());
stemWidth->setValue(lstyle.valueS(ST_stemWidth).val());
ledgerLineWidth->setValue(lstyle.valueS(ST_ledgerLineWidth).val());
ledgerLineLength->setValue(lstyle.valueS(ST_ledgerLineLength).val());

Expand Down
33 changes: 28 additions & 5 deletions mscore/editstyle.ui
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<item row="0" column="1">
<widget class="QStackedWidget" name="pageStack">
<property name="currentIndex">
<number>0</number>
<number>6</number>
</property>
<widget class="QWidget" name="Seite1">
<layout class="QVBoxLayout" name="verticalLayout_20">
Expand Down Expand Up @@ -2463,14 +2463,14 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="4" column="0">
<item row="5" column="0">
<widget class="QLabel" name="label_24">
<property name="text">
<string>Ledger line width</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="5" column="1">
<widget class="QDoubleSpinBox" name="ledgerLineWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
Expand All @@ -2486,14 +2486,14 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="5" column="0">
<item row="6" column="0">
<widget class="QLabel" name="label_34">
<property name="text">
<string>Ledger line length</string>
</property>
</widget>
</item>
<item row="5" column="1">
<item row="6" column="1">
<widget class="QDoubleSpinBox" name="ledgerLineLength">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
Expand All @@ -2509,6 +2509,29 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_100">
<property name="text">
<string>Stem width</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="stemWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="suffix">
<string>sp</string>
</property>
<property name="singleStep">
<double>0.100000000000000</double>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit 58b3ea2

Please sign in to comment.