[qet] [838] Optimisation sur le rendu de la grille.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 838
Author:   xavier
Date:     2010-01-10 20:11:32 +0100 (Sun, 10 Jan 2010)
Log Message:
-----------
Optimisation sur le rendu de la grille.

Modified Paths:
--------------
    trunk/sources/diagram.cpp

Modified: trunk/sources/diagram.cpp
===================================================================
--- trunk/sources/diagram.cpp	2010-01-10 15:07:06 UTC (rev 837)
+++ trunk/sources/diagram.cpp	2010-01-10 19:11:32 UTC (rev 838)
@@ -111,11 +111,13 @@
 		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);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/