equal
deleted
inserted
replaced
23 ** |
23 ** |
24 ****************************************************************************/ |
24 ****************************************************************************/ |
25 |
25 |
26 #include "hblistview_p.h" |
26 #include "hblistview_p.h" |
27 #include "hblistview.h" |
27 #include "hblistview.h" |
|
28 #include "hbscrollbar.h" |
28 |
29 |
29 #include "hblistviewitem.h" |
30 #include "hblistviewitem.h" |
30 #include "hbabstractitemcontainer_p.h" |
31 #include "hbabstractitemcontainer_p.h" |
31 #include "hblistitemcontainer_p.h" |
32 #include "hblistitemcontainer_p.h" |
32 #include <hbwidgetfeedback.h> |
33 #include <hbwidgetfeedback.h> |
286 } |
287 } |
287 |
288 |
288 return HbAbstractItemViewPrivate::panTriggered(event); |
289 return HbAbstractItemViewPrivate::panTriggered(event); |
289 } |
290 } |
290 |
291 |
|
292 void HbListViewPrivate::arrangeModeSetup(bool newMode) |
|
293 { |
|
294 Q_Q(HbListView); |
|
295 |
|
296 if (newMode) { |
|
297 mOriginalInteractiveScrollBar = q->verticalScrollBar()->isInteractive(); |
|
298 q->verticalScrollBar()->setInteractive(true); |
|
299 mOriginalLongPressEnabled = q->longPressEnabled(); |
|
300 q->setLongPressEnabled(false); |
|
301 mOriginalFriction = mFrictionEnabled; |
|
302 q->setFrictionEnabled(false); |
|
303 } else { |
|
304 q->verticalScrollBar()->setInteractive(mOriginalInteractiveScrollBar); |
|
305 q->setLongPressEnabled(mOriginalLongPressEnabled); |
|
306 q->setFrictionEnabled(mOriginalFriction); |
|
307 } |
|
308 |
|
309 mArrangeMode = newMode; |
|
310 |
|
311 } |