Change texture painter clip expand joint style to round from miter

master
Jeremy Hu 2018-10-10 22:42:55 +08:00
parent eeff771a3b
commit a2770ecd8e
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ QPainterPath TextureGenerator::expandedPainterPath(const QPainterPath &painterPa
{ {
QPainterPathStroker stroker; QPainterPathStroker stroker;
stroker.setWidth(expandSize); stroker.setWidth(expandSize);
stroker.setJoinStyle(Qt::MiterJoin); stroker.setJoinStyle(Qt::RoundJoin);
return (stroker.createStroke(painterPath) + painterPath).simplified(); return (stroker.createStroke(painterPath) + painterPath).simplified();
} }