calendarui/views/src/calenmonthgrid.cpp
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 63 a3cb48f6c889
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
  1205 	// Create the list of points for which lines have to be drawn
  1205 	// Create the list of points for which lines have to be drawn
  1206 	// List should have even number of points so that it draws all the lines
  1206 	// List should have even number of points so that it draws all the lines
  1207 	// Painter draws the line for first two points in the list and then second 
  1207 	// Painter draws the line for first two points in the list and then second 
  1208 	// line for next two points in the list like that. Hence, list should 
  1208 	// line for next two points in the list like that. Hence, list should 
  1209 	// contain even number of points
  1209 	// contain even number of points
       
  1210 	// Dont draw the first horizontal line as we have thick line seperator
       
  1211 	// coming between day names and the month grid
  1210 	QVector<QPointF> pointList;
  1212 	QVector<QPointF> pointList;
  1211 	for (int i = 0; i < numOfRows; i++) {
  1213 	for (int i = 1; i < numOfRows; i++) {
  1212 		pointList.append(QPointF(startPoint.x(), 
  1214 		pointList.append(QPointF(startPoint.x(), 
  1213 		                         startPoint.y() + (i * rowWidth)));
  1215 		                         startPoint.y() + (i * rowWidth)));
  1214 		pointList.append(QPointF(endPoint.x(), endPoint.y() + (i * rowWidth)));
  1216 		pointList.append(QPointF(endPoint.x(), endPoint.y() + (i * rowWidth)));
  1215 	}
  1217 	}
  1216 	
  1218