equal
deleted
inserted
replaced
126 HbMainWindow* CalenDayUtils::mainWindow() |
126 HbMainWindow* CalenDayUtils::mainWindow() |
127 { |
127 { |
128 ASSERT(mMainWindow); |
128 ASSERT(mMainWindow); |
129 |
129 |
130 return mMainWindow; |
130 return mMainWindow; |
131 } |
|
132 |
|
133 /*! |
|
134 \brief isHorizontalSwipe |
|
135 |
|
136 \return TRUE if horizontal swipe was recognized (angle in specific range) |
|
137 */ |
|
138 bool CalenDayUtils::isHorizontalSwipe(qreal angle) const |
|
139 { |
|
140 bool isHSwipe = false; |
|
141 if ((angle < KCalenSwipeAngle) || |
|
142 ((angle > 180 - KCalenSwipeAngle) && (angle < 180 + KCalenSwipeAngle)) || |
|
143 (angle > 360 - KCalenSwipeAngle)) { |
|
144 isHSwipe = true; |
|
145 } |
|
146 |
|
147 return isHSwipe; |
|
148 } |
131 } |
149 |
132 |
150 /*! |
133 /*! |
151 \brief getEventValidStartEndTime |
134 \brief getEventValidStartEndTime |
152 \brief Get event's valid start/end time from agenda entry. |
135 \brief Get event's valid start/end time from agenda entry. |