represent interval multiplier as a %

This commit is contained in:
Damien Elmes 2012-08-23 18:51:41 +09:00
parent 5b0b6e39b7
commit 7be04bc2d5
2 changed files with 11 additions and 5 deletions

View file

@ -172,7 +172,7 @@ class DeckConf(QDialog):
f.revSpace.setValue(c['fuzz']*100)
f.revMinSpace.setValue(c['minSpace'])
f.easyBonus.setValue(c['ease4']*100)
f.fi1.setValue(c['ivlFct'])
f.fi1.setValue(c['ivlFct']*100)
f.maxIvl.setValue(c['maxIvl'])
f.revplim.setText(self.parentLimText('rev'))
# lapse
@ -249,7 +249,7 @@ class DeckConf(QDialog):
c['fuzz'] = f.revSpace.value()/100.0
c['minSpace'] = f.revMinSpace.value()
c['ease4'] = f.easyBonus.value()/100.0
c['ivlFct'] = f.fi1.value()
c['ivlFct'] = f.fi1.value()/100.0
c['maxIvl'] = f.maxIvl.value()
# lapse
c = self.conf['lapse']

View file

@ -271,7 +271,7 @@
<item row="4" column="2">
<widget class="QLabel" name="label_34">
<property name="text">
<string>x</string>
<string>%</string>
</property>
</widget>
</item>
@ -311,14 +311,20 @@
</item>
<item row="4" column="1">
<widget class="QDoubleSpinBox" name="fi1">
<property name="decimals">
<number>0</number>
</property>
<property name="minimum">
<double>0.300000000000000</double>
<double>0.000000000000000</double>
</property>
<property name="maximum">
<double>999.000000000000000</double>
</property>
<property name="singleStep">
<double>0.050000000000000</double>
</property>
<property name="value">
<double>1.000000000000000</double>
<double>100.000000000000000</double>
</property>
</widget>
</item>