Resolved issue #80. Choice between inches and centimeters in options
--HG-- branch : feature
This commit is contained in:
parent
bb83fb8f29
commit
cd15fd711e
|
@ -54,6 +54,10 @@ DialogDetail::DialogDetail(const VContainer *data, const quint32 &toolId, QWidge
|
||||||
|
|
||||||
// Default value for seam allowence is 1 cm. But pattern have different units, so just set 1 in dialog not enough.
|
// Default value for seam allowence is 1 cm. But pattern have different units, so just set 1 in dialog not enough.
|
||||||
ui.doubleSpinBoxSeams->setValue(UnitConvertor(1, Unit::Cm, qApp->patternUnit()));
|
ui.doubleSpinBoxSeams->setValue(UnitConvertor(1, Unit::Cm, qApp->patternUnit()));
|
||||||
|
if(qApp->patternUnit() == Unit::Inch)
|
||||||
|
{
|
||||||
|
ui.doubleSpinBoxSeams->setDecimals(5);
|
||||||
|
}
|
||||||
|
|
||||||
bOk = ui.buttonBox->button(QDialogButtonBox::Ok);
|
bOk = ui.buttonBox->button(QDialogButtonBox::Ok);
|
||||||
SCASSERT(bOk != nullptr);
|
SCASSERT(bOk != nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user