Merged in ValentinaZhuravska/valentina/feature (pull request #81)

Resolved issue #80.

--HG--
branch : develop
This commit is contained in:
Roman Telezhinskyi 2015-11-29 16:43:59 +02:00
commit 3dc675e0ce

View File

@ -52,6 +52,10 @@ DialogDetail::DialogDetail(const VContainer *data, const quint32 &toolId, QWidge
ui.labelUnitX->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.
ui.doubleSpinBoxSeams->setValue(UnitConvertor(1, Unit::Cm, qApp->patternUnit()));