Default value for seam allowence is 1 cm. But pattern have different units, so

just set 1 in dialog not enough.

--HG--
branch : develop
This commit is contained in:
dismine 2015-01-02 13:08:24 +02:00
parent 1a59396196
commit 4bb5930cad

View File

@ -35,6 +35,7 @@
#include "../../geometry/vsplinepath.h"
#include "../../container/vcontainer.h"
#include "../../libs/ifc/xml/vdomdocument.h"
#include "../../xml/vabstractmeasurements.h"
//---------------------------------------------------------------------------------------------------------------------
/**
@ -51,6 +52,9 @@ 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));
// Default value for seam allowence is 1 cm. But pattern have different units, so just set 1 in dialog not enough.
ui.doubleSpinBoxSeams->setValue(VAbstractMeasurements::UnitConvertor(1, Unit::Cm, qApp->patternUnit()));
bOk = ui.buttonBox->button(QDialogButtonBox::Ok);
SCASSERT(bOk != nullptr);
connect(bOk, &QPushButton::clicked, this, &DialogTool::DialogAccepted);