Resolved issue #400. Layout 'fold line' is incorrect.
--HG-- branch : develop
This commit is contained in:
parent
9f87773b8e
commit
7027198f2a
|
@ -264,6 +264,7 @@ INCLUDEPATH += $${PWD}/../../libs/vpropertyexplorer
|
||||||
DEPENDPATH += $${PWD}/../../libs/vpropertyexplorer
|
DEPENDPATH += $${PWD}/../../libs/vpropertyexplorer
|
||||||
|
|
||||||
# The list helps to check that all files are exist.
|
# The list helps to check that all files are exist.
|
||||||
|
# Don't forget to convert text to curves.
|
||||||
DIAGRAMS += \
|
DIAGRAMS += \
|
||||||
$${PWD}/share/resources/diagrams/Ap1.svg \
|
$${PWD}/share/resources/diagrams/Ap1.svg \
|
||||||
$${PWD}/share/resources/diagrams/Ap2.svg \
|
$${PWD}/share/resources/diagrams/Ap2.svg \
|
||||||
|
|
|
@ -422,7 +422,7 @@ void MainWindowsNoGUI::PrepareDetailsForLayout(const QHash<quint32, VDetail> *de
|
||||||
VLayoutDetail det = VLayoutDetail();
|
VLayoutDetail det = VLayoutDetail();
|
||||||
const VDetail &d = idetail.value();
|
const VDetail &d = idetail.value();
|
||||||
det.SetCountourPoints(d.ContourPoints(pattern));
|
det.SetCountourPoints(d.ContourPoints(pattern));
|
||||||
det.SetSeamAllowencePoints(d.SeamAllowancePoints(pattern), d.getSeamAllowance());
|
det.SetSeamAllowencePoints(d.SeamAllowancePoints(pattern), d.getSeamAllowance(), d.getClosed());
|
||||||
det.setName(d.getName());
|
det.setName(d.getName());
|
||||||
det.setWidth(qApp->toPixel(d.getWidth()));
|
det.setWidth(qApp->toPixel(d.getWidth()));
|
||||||
|
|
||||||
|
|
|
@ -87,11 +87,12 @@ QVector<QPointF> VLayoutDetail::GetSeamAllowencePoints() const
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VLayoutDetail::SetSeamAllowencePoints(const QVector<QPointF> &points, bool seamAllowence)
|
void VLayoutDetail::SetSeamAllowencePoints(const QVector<QPointF> &points, bool seamAllowence, bool closed)
|
||||||
{
|
{
|
||||||
if (seamAllowence)
|
if (seamAllowence)
|
||||||
{
|
{
|
||||||
setSeamAllowance(seamAllowence);
|
setSeamAllowance(seamAllowence);
|
||||||
|
setClosed(closed);
|
||||||
d->seamAllowence = points;
|
d->seamAllowence = points;
|
||||||
if (not d->seamAllowence.isEmpty())
|
if (not d->seamAllowence.isEmpty())
|
||||||
{
|
{
|
||||||
|
|
|
@ -49,7 +49,7 @@ public:
|
||||||
void SetCountourPoints(const QVector<QPointF> &points);
|
void SetCountourPoints(const QVector<QPointF> &points);
|
||||||
|
|
||||||
QVector<QPointF> GetSeamAllowencePoints() const;
|
QVector<QPointF> GetSeamAllowencePoints() const;
|
||||||
void SetSeamAllowencePoints(const QVector<QPointF> &points, bool seamAllowence = true);
|
void SetSeamAllowencePoints(const QVector<QPointF> &points, bool seamAllowence = true, bool closed = true);
|
||||||
|
|
||||||
QVector<QPointF> GetLayoutAllowencePoints() const;
|
QVector<QPointF> GetLayoutAllowencePoints() const;
|
||||||
void SetLayoutAllowencePoints();
|
void SetLayoutAllowencePoints();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user