src/hbwidgets/itemviews/hbabstractitemcontainer_p.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 23 e6ad4ef83b23
child 34 ed14f46c0e55
--- a/src/hbwidgets/itemviews/hbabstractitemcontainer_p.cpp	Wed Jun 23 18:33:25 2010 +0300
+++ b/src/hbwidgets/itemviews/hbabstractitemcontainer_p.cpp	Tue Jul 06 14:36:53 2010 +0300
@@ -27,7 +27,6 @@
 
 #include "hbabstractviewitem.h"
 #include "hbabstractitemview.h"
-#include "hbabstractitemview_p.h"
 #include "hbmodeliterator.h"
 #include <hbapplication.h>
 
@@ -481,11 +480,7 @@
         if (!delta.isNull()) {
             q->setPos(q->pos() - delta);
 
-            if (mItemView) {
-                // this will force the HbScrollArea to adjust the content correctly. Adjustment
-                // is not done in the setPos generated event handling by default to speed up scrolling.
-                HbAbstractItemViewPrivate::d_ptr(mItemView)->adjustContent();
-            }
+            adjustContent();
         }
     }
 }