fix spinbox for staff scale

This commit is contained in:
ws 2014-08-14 17:06:13 +02:00
parent c78951ba3c
commit 3a43976877
2 changed files with 14 additions and 5 deletions

View file

@ -76,7 +76,7 @@ EditStaff::EditStaff(Staff* s, QWidget* parent)
partName->setText(part->partName());
neverHide->setChecked(staff->neverHide());
showIfEmpty->setChecked(staff->showIfEmpty());
mag->setValue(staff->userMag());
mag->setValue(staff->userMag() * 100.0);
updateStaffType();
updateInstrument();
@ -240,7 +240,7 @@ void EditStaff::apply()
QColor col = color->color();
bool nhide = neverHide->isChecked();
bool ifEmpty = showIfEmpty->isChecked();
qreal scale = mag->value();
qreal scale = mag->value() / 100.0;
if (!(instrument == *part->instr()) || part->partName() != partName->text()) {
Interval v1 = instrument.transpose();

View file

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>920</width>
<height>603</height>
<height>623</height>
</rect>
</property>
<property name="sizePolicy">
@ -833,11 +833,20 @@
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="mag">
<property name="suffix">
<string>%</string>
</property>
<property name="decimals">
<number>1</number>
</property>
<property name="minimum">
<double>1.000000000000000</double>
<double>10.000000000000000</double>
</property>
<property name="maximum">
<double>10.000000000000000</double>
<double>1000.000000000000000</double>
</property>
<property name="value">
<double>100.000000000000000</double>
</property>
</widget>
</item>