forked from teamnwah/openmw-tes3coop
Use float for setting skill use values. Should resolve bug #2183.
This commit is contained in:
parent
3b5cd286f6
commit
6731afc79c
2 changed files with 3 additions and 1 deletions
|
@ -272,7 +272,7 @@ namespace CSMWorld
|
||||||
{
|
{
|
||||||
ESXRecordT record2 = record.get();
|
ESXRecordT record2 = record.get();
|
||||||
|
|
||||||
record2.mData.mUseValue[mIndex] = data.toInt();
|
record2.mData.mUseValue[mIndex] = data.toFloat();
|
||||||
|
|
||||||
record.setModified (record2);
|
record.setModified (record2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,6 +173,8 @@ QWidget *CSVWorld::CommandDelegate::createEditor (QWidget *parent, const QStyleO
|
||||||
{
|
{
|
||||||
QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
|
QDoubleSpinBox *dsb = new QDoubleSpinBox(parent);
|
||||||
dsb->setRange(FLT_MIN, FLT_MAX);
|
dsb->setRange(FLT_MIN, FLT_MAX);
|
||||||
|
dsb->setSingleStep(0.01f);
|
||||||
|
dsb->setDecimals(3);
|
||||||
return dsb;
|
return dsb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue