Rapatriement dans la branche 0.3 des revisions 833 a 839.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@840 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2010-01-10 20:22:52 +00:00
parent 84318eb6ae
commit e71042d08d
7 changed files with 50 additions and 7 deletions

View File

@@ -111,11 +111,13 @@ void Diagram::drawBackground(QPainter *p, const QRectF &r) {
int g_y = (int)ceil(r.y());
while (g_y % yGrid) ++ g_y;
QPolygon points;
for (int gx = g_x ; gx < limite_x ; gx += xGrid) {
for (int gy = g_y ; gy < limite_y ; gy += yGrid) {
p -> drawPoint(gx, gy);
points << QPoint(gx, gy);
}
}
p -> drawPoints(points);
}
if (use_border) border_and_inset.draw(p, margin, margin);