Fixed not enought decimals.
--HG-- branch : develop
This commit is contained in:
parent
d57cddd84b
commit
decb74f99e
|
@ -2919,6 +2919,16 @@ void TMainWindow::SetDecimals()
|
||||||
switch (mUnit)
|
switch (mUnit)
|
||||||
{
|
{
|
||||||
case Unit::Cm:
|
case Unit::Cm:
|
||||||
|
ui->doubleSpinBoxBaseValue->setDecimals(2);
|
||||||
|
ui->doubleSpinBoxBaseValue->setSingleStep(0.01);
|
||||||
|
|
||||||
|
ui->doubleSpinBoxInSizes->setDecimals(2);
|
||||||
|
ui->doubleSpinBoxInSizes->setSingleStep(0.01);
|
||||||
|
|
||||||
|
ui->doubleSpinBoxInHeights->setDecimals(2);
|
||||||
|
ui->doubleSpinBoxInHeights->setSingleStep(0.01);
|
||||||
|
break;
|
||||||
|
case Unit::Mm:
|
||||||
ui->doubleSpinBoxBaseValue->setDecimals(1);
|
ui->doubleSpinBoxBaseValue->setDecimals(1);
|
||||||
ui->doubleSpinBoxBaseValue->setSingleStep(0.1);
|
ui->doubleSpinBoxBaseValue->setSingleStep(0.1);
|
||||||
|
|
||||||
|
@ -2928,16 +2938,6 @@ void TMainWindow::SetDecimals()
|
||||||
ui->doubleSpinBoxInHeights->setDecimals(1);
|
ui->doubleSpinBoxInHeights->setDecimals(1);
|
||||||
ui->doubleSpinBoxInHeights->setSingleStep(0.1);
|
ui->doubleSpinBoxInHeights->setSingleStep(0.1);
|
||||||
break;
|
break;
|
||||||
case Unit::Mm:
|
|
||||||
ui->doubleSpinBoxBaseValue->setDecimals(0);
|
|
||||||
ui->doubleSpinBoxBaseValue->setSingleStep(1);
|
|
||||||
|
|
||||||
ui->doubleSpinBoxInSizes->setDecimals(0);
|
|
||||||
ui->doubleSpinBoxInSizes->setSingleStep(1);
|
|
||||||
|
|
||||||
ui->doubleSpinBoxInHeights->setDecimals(0);
|
|
||||||
ui->doubleSpinBoxInHeights->setSingleStep(1);
|
|
||||||
break;
|
|
||||||
case Unit::Inch:
|
case Unit::Inch:
|
||||||
ui->doubleSpinBoxBaseValue->setDecimals(5);
|
ui->doubleSpinBoxBaseValue->setDecimals(5);
|
||||||
ui->doubleSpinBoxBaseValue->setSingleStep(0.00001);
|
ui->doubleSpinBoxBaseValue->setSingleStep(0.00001);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user