equal
deleted
inserted
replaced
969 void QPdfBaseEngine::drawPoints (const QPointF *points, int pointCount) |
969 void QPdfBaseEngine::drawPoints (const QPointF *points, int pointCount) |
970 { |
970 { |
971 if (!points) |
971 if (!points) |
972 return; |
972 return; |
973 |
973 |
|
974 Q_D(QPdfBaseEngine); |
974 QPainterPath p; |
975 QPainterPath p; |
975 for (int i=0; i!=pointCount;++i) { |
976 for (int i=0; i!=pointCount;++i) { |
976 p.moveTo(points[i]); |
977 p.moveTo(points[i]); |
977 p.lineTo(points[i] + QPointF(0, 0.001)); |
978 p.lineTo(points[i] + QPointF(0, 0.001)); |
978 } |
979 } |
|
980 |
|
981 bool hadBrush = d->hasBrush; |
|
982 d->hasBrush = false; |
979 drawPath(p); |
983 drawPath(p); |
|
984 d->hasBrush = hadBrush; |
980 } |
985 } |
981 |
986 |
982 void QPdfBaseEngine::drawLines (const QLineF *lines, int lineCount) |
987 void QPdfBaseEngine::drawLines (const QLineF *lines, int lineCount) |
983 { |
988 { |
984 if (!lines) |
989 if (!lines) |
985 return; |
990 return; |
986 |
991 |
|
992 Q_D(QPdfBaseEngine); |
987 QPainterPath p; |
993 QPainterPath p; |
988 for (int i=0; i!=lineCount;++i) { |
994 for (int i=0; i!=lineCount;++i) { |
989 p.moveTo(lines[i].p1()); |
995 p.moveTo(lines[i].p1()); |
990 p.lineTo(lines[i].p2()); |
996 p.lineTo(lines[i].p2()); |
991 } |
997 } |
|
998 bool hadBrush = d->hasBrush; |
|
999 d->hasBrush = false; |
992 drawPath(p); |
1000 drawPath(p); |
|
1001 d->hasBrush = hadBrush; |
993 } |
1002 } |
994 |
1003 |
995 void QPdfBaseEngine::drawRects (const QRectF *rects, int rectCount) |
1004 void QPdfBaseEngine::drawRects (const QRectF *rects, int rectCount) |
996 { |
1005 { |
997 if (!rects) |
1006 if (!rects) |