|
|
@ -742,7 +742,7 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, |
|
|
|
mCurrentStroke = new UBGraphicsStroke(); |
|
|
|
mCurrentStroke = new UBGraphicsStroke(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QPolygonF newPolygon = UBGeometryUtils::lineToPolygon(QLineF(mPreviousPoint, pEndPoint), pWidth); |
|
|
|
QPolygonF newPolygon = UBGeometryUtils::lineToPolygon(QLineF(mPreviousPoint, pEndPoint), mPreviousWidth, pWidth); |
|
|
|
|
|
|
|
|
|
|
|
if (!mCurrentPolygon) |
|
|
|
if (!mCurrentPolygon) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -767,12 +767,6 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, |
|
|
|
QPolygonF oldPolygons = strokePainterPath.simplified().toFillPolygon(mCurrentPolygon->sceneTransform().inverted()); |
|
|
|
QPolygonF oldPolygons = strokePainterPath.simplified().toFillPolygon(mCurrentPolygon->sceneTransform().inverted()); |
|
|
|
newPolygon = oldPolygons.united(newPolygon); |
|
|
|
newPolygon = oldPolygons.united(newPolygon); |
|
|
|
|
|
|
|
|
|
|
|
/* foreach(QPolygonF polygon, oldPolygons)
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
newPolygon = polygon.united(newPolygon); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mpLastPolygon = mCurrentPolygon; |
|
|
|
mpLastPolygon = mCurrentPolygon; |
|
|
|
|
|
|
|
|
|
|
|
mCurrentPolygon->setPolygon(newPolygon); |
|
|
|
mCurrentPolygon->setPolygon(newPolygon); |
|
|
|