Fix layout internal path support of pen style.
--HG-- branch : develop
This commit is contained in:
parent
56dd8ef3b6
commit
91a75f6f01
|
@ -72,11 +72,7 @@ QPainterPath VLayoutPiecePath::GetPainterPath() const
|
||||||
QPainterPath path;
|
QPainterPath path;
|
||||||
if (not d->m_points.isEmpty())
|
if (not d->m_points.isEmpty())
|
||||||
{
|
{
|
||||||
path.moveTo(d->m_points.at(0));
|
path.addPolygon(QPolygonF(d->m_points));
|
||||||
for (qint32 j = 1; j < d->m_points.count(); ++j)
|
|
||||||
{
|
|
||||||
path.lineTo(d->m_points.at(j));
|
|
||||||
}
|
|
||||||
path.setFillRule(Qt::WindingFill);
|
path.setFillRule(Qt::WindingFill);
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user