equal
deleted
inserted
replaced
16 */ |
16 */ |
17 |
17 |
18 #ifndef HBLISTVIEW_H |
18 #ifndef HBLISTVIEW_H |
19 #define HBLISTVIEW_H |
19 #define HBLISTVIEW_H |
20 |
20 |
|
21 #include <hbglobal.h> |
21 #include "hbwidget.h" |
22 #include "hbwidget.h" |
22 #include "hblistviewitem.h" |
23 #include "hblistviewitem.h" |
23 #include "hbscrollbar.h" |
24 #include "hbscrollbar.h" |
24 #include "hbabstractitemview.h" |
25 #include "hbabstractitemview.h" |
25 #include "videosortfilterproxymodel.h" |
26 #include "videosortfilterproxymodel.h" |
40 BounceBackClamping |
41 BounceBackClamping |
41 }; |
42 }; |
42 enum ScrollingStyle |
43 enum ScrollingStyle |
43 { |
44 { |
44 InvalidScrolling, |
45 InvalidScrolling, |
45 PanOrFlick |
46 PanWithFollowOn |
46 }; |
47 }; |
47 }; |
48 }; |
48 |
49 |
49 class HbListView : public HbAbstractItemView |
50 class HbListView : public HbAbstractItemView |
50 { |
51 { |
219 { |
220 { |
220 mLongPressedPoint = point; |
221 mLongPressedPoint = point; |
221 } |
222 } |
222 |
223 |
223 /** |
224 /** |
|
225 * sets mLongPressedPoint |
|
226 */ |
|
227 void panGesture (const QPointF &point) |
|
228 { |
|
229 mPanGesturePoint = point; |
|
230 } |
|
231 |
|
232 /** |
224 * dummy method |
233 * dummy method |
225 */ |
234 */ |
226 void clearSelection() |
235 void clearSelection() |
227 { |
236 { |
228 mAllSelectedStatus = 0; |
237 mAllSelectedStatus = 0; |
261 /** |
270 /** |
262 * dummy method |
271 * dummy method |
263 */ |
272 */ |
264 HbAbstractViewItem* itemAtPosition(const QPointF &position) |
273 HbAbstractViewItem* itemAtPosition(const QPointF &position) |
265 { |
274 { |
|
275 Q_UNUSED(position); |
266 return mItem; |
276 return mItem; |
267 } |
277 } |
268 public: |
278 public: |
269 |
279 |
270 /** |
280 /** |
323 * value setted in longPressGesture |
333 * value setted in longPressGesture |
324 */ |
334 */ |
325 static QPointF mLongPressedPoint; |
335 static QPointF mLongPressedPoint; |
326 |
336 |
327 /** |
337 /** |
|
338 * value setted in panGesture |
|
339 */ |
|
340 static QPointF mPanGesturePoint; |
|
341 |
|
342 /** |
328 * latest value settes in setClampingStyle |
343 * latest value settes in setClampingStyle |
329 */ |
344 */ |
330 static HbScrollArea::ClampingStyle mLatestClamping; |
345 static HbScrollArea::ClampingStyle mLatestClamping; |
331 |
346 |
332 /** |
347 /** |