Merged in ValentinaZhuravska/valentina/feature (pull request #81)
Resolved issue #80. --HG-- branch : develop
This commit is contained in:
commit
3dc675e0ce
|
@ -52,6 +52,10 @@ DialogDetail::DialogDetail(const VContainer *data, const quint32 &toolId, QWidge
|
||||||
ui.labelUnitX->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
ui.labelUnitX->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||||
ui.labelUnitY->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
ui.labelUnitY->setText(VDomDocument::UnitsToStr(qApp->patternUnit(), true));
|
||||||
|
|
||||||
|
if(qApp->patternUnit() == Unit::Inch)
|
||||||
|
{
|
||||||
|
ui.doubleSpinBoxSeams->setDecimals(5);
|
||||||
|
}
|
||||||
// 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()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user