equal
deleted
inserted
replaced
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 ) { |