calendarui/views/dayview/src/calendaystatusstrip.cpp
changeset 58 ef813d54df51
parent 50 579cc610882e
child 68 a5a1242fd2e8
--- a/calendarui/views/dayview/src/calendaystatusstrip.cpp	Tue Jul 06 14:14:56 2010 +0300
+++ b/calendarui/views/dayview/src/calendaystatusstrip.cpp	Wed Aug 18 09:47:38 2010 +0300
@@ -43,7 +43,7 @@
 }
 
 /*!
-   \brief Return range beatween two filled lines in StripWithLines drawing 
+   \brief Returns range between two filled lines in StripWithLines drawing 
    styles.
    
    \sa CalenDayStatusStrip::DrawingStyle, setRange
@@ -54,7 +54,7 @@
 }
 
 /*!
-   \brief Return color drawing
+   \brief Returns color drawing
    
    \sa setColor
  */
@@ -64,7 +64,7 @@
 }
 
 /*!
-   \brief Return style of drawing.
+   \brief Returns style of drawing.
    
    \sa CalenDayStatusStrip::DrawingStyle, setDrawingStyle
  */
@@ -74,7 +74,7 @@
 }
 
 /*!
-   \brief Return orginal start and entime fo event
+   \brief Returns original start and entime fo event
    
    \sa setStartEndTime
  */
@@ -84,10 +84,10 @@
 }
 
 /*!
-   \brief It set range beatween two filled lines in StripWithLines drawing 
+   \brief It sets range between two filled lines in StripWithLines drawing 
    styles.
    
-   \param range Range beatween two filled lines
+   \param range Range between two filled lines
    
    \sa CalenDayStatusStrip::DrawingStyle, range
  */
@@ -97,7 +97,7 @@
 }
 
 /*!
-   \brief It set color drawing
+   \brief It sets color drawing
    
    \param stripColor Color of drawing
    
@@ -109,7 +109,7 @@
 }
 
 /*!
-   \brief It set drawing style of strip 
+   \brief It sets drawing style of strip 
    
    \param drawingStyle Style of strip drawing.
    
@@ -122,7 +122,7 @@
 }
 
 /*!
-   It set start and end time of event
+   It sets start and end time of event
    
    \param startTime Start of event
    \param endTime End of event
@@ -223,7 +223,7 @@
 }
 
 /*!
-   \brief It preapre points to draw filled polygon when StripWithLines style is
+   \brief It preapres points to draw filled polygon when StripWithLines style is
    on.
  */
 QPolygonF 
@@ -238,7 +238,7 @@
 }
 
 /*!
-    Return time for position 0 and height in widget 
+    Returns time for position 0 and height in widget 
     
     \param startTime Start of event
     \param endTime End of event
@@ -263,7 +263,7 @@
     if (endTime.minute() == 0) {
         end = endTime;
     }
-    else if (endTime.hour() == 23) {
+    else if (endTime.hour() == 23 and endTime.minute() > 30) {
         end = QTime(endTime.hour(), 59);
     }
     else if (endTime.minute() <= 30) {
@@ -277,7 +277,7 @@
 }
 
 /*!
-   Calculate height of one minute from widget height, and start/end time. 
+   Calculates height of one minute from widget height, and start/end time. 
  */
 qreal CalenDayStatusStrip::calculateMinuteHeight(const QTime &start, 
                                                    const QTime &end)