calendarui/views/src/calenthicklinesdrawer.cpp
changeset 57 bb2d3e476f29
parent 51 0b38fc5b94c6
child 63 a3cb48f6c889
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
    97 	// Check the type of the widget and paint the necessary things
    97 	// Check the type of the widget and paint the necessary things
    98 	if ( typeOfWidget == CalendarNamespace::CalenDayNameWidget ) {
    98 	if ( typeOfWidget == CalendarNamespace::CalenDayNameWidget ) {
    99 		// Calculate the seperation to be added so that line coincides with 
    99 		// Calculate the seperation to be added so that line coincides with 
   100 		// top border of the grid
   100 		// top border of the grid
   101 		qreal seperation = CALENDAYNAMEANDGRIDSEPERATOR * unitValue;
   101 		qreal seperation = CALENDAYNAMEANDGRIDSEPERATOR * unitValue;
       
   102 		// Adjust the seperation with the thickness of the line
       
   103 		seperation = seperation - widthInPixels;
   102 		// Get the start point and end point to draw the line
   104 		// Get the start point and end point to draw the line
   103 		QPointF startPoint(controlRect.bottomLeft().x(), controlRect.bottomLeft().y() + seperation);
   105 		QPointF startPoint(controlRect.bottomLeft().x(), controlRect.bottomLeft().y() + seperation);
   104 		QPointF endPoint(controlRect.bottomRight().x(), controlRect.bottomRight().y() + seperation);
   106 		QPointF endPoint(controlRect.bottomRight().x(), controlRect.bottomRight().y() + seperation);
   105 		painter->drawLine(startPoint, endPoint);
   107 		painter->drawLine(startPoint, endPoint);
   106 	} else if ( typeOfWidget == CalendarNamespace::CalenWeekNumWidget ) {
   108 	} else if ( typeOfWidget == CalendarNamespace::CalenWeekNumWidget ) {