calendarui/views/dayview/src/calendayutils.cpp
changeset 58 ef813d54df51
parent 50 579cc610882e
child 68 a5a1242fd2e8
--- a/calendarui/views/dayview/src/calendayutils.cpp	Tue Jul 06 14:14:56 2010 +0300
+++ b/calendarui/views/dayview/src/calendayutils.cpp	Wed Aug 18 09:47:38 2010 +0300
@@ -131,28 +131,11 @@
 }
 
 /*!
- \brief isHorizontalSwipe
- 
- \return TRUE if horizontal swipe was recognized (angle in specific range)
- */
-bool CalenDayUtils::isHorizontalSwipe(qreal angle) const
-{
-    bool isHSwipe = false;
-    if ((angle < KCalenSwipeAngle) || 
-        ((angle > 180 - KCalenSwipeAngle) && (angle < 180 + KCalenSwipeAngle)) ||
-        (angle > 360 - KCalenSwipeAngle)) {
-        isHSwipe = true;
-    }
-    
-    return isHSwipe;
-}
-
-/*!
  \brief getEventValidStartEndTime
  \brief Get event's valid start/end time from agenda entry.
  */
 void CalenDayUtils::getEventValidStartEndTime( QDateTime& start, QDateTime& end, 
-                                    AgendaEntry& entry, QDateTime& currentDate )
+                                    const AgendaEntry& entry, QDateTime& currentDate )
 {
     start = entry.startTime();
     end = entry.endTime();