src/hbwidgets/itemviews/hblistitemcontainer_p.cpp
changeset 6 c3690ec91ef8
parent 3 11d3954df52a
child 7 923ff622b8b9
--- a/src/hbwidgets/itemviews/hblistitemcontainer_p.cpp	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbwidgets/itemviews/hblistitemcontainer_p.cpp	Wed Jun 23 18:33:25 2010 +0300
@@ -169,7 +169,7 @@
     if (minHeight == 0.0) {
         QModelIndex index;
         while (mItems.isEmpty()) {
-            // in practise following conditions must apply: itemview is empty and scrollTo() has been called.
+            // in practize following conditions must apply: itemview is empty and scrollTo() has been called.
             // Starts populating items from given mFirstItemIndex
             if ( mFirstItemIndex.isValid()) {
                 index = mFirstItemIndex;
@@ -240,8 +240,10 @@
 
         HbAbstractViewItem *viewItem = d->item(index);
         if (viewItem) {
-            QPair<HbAbstractViewItem *, int> pair(viewItem, d->mapToLayoutIndex(d->mItems.indexOf(viewItem)));
-            d->mAnimatedItems.append(pair);
+            if (HbEffect::effectRunning(viewItem)) {
+                QPair<HbAbstractViewItem *, int> pair(viewItem, d->mapToLayoutIndex(d->mItems.indexOf(viewItem)));
+                d->mAnimatedItems.append(pair);
+            }
         } else {
             return;
         }
@@ -393,7 +395,7 @@
                 // because only then container can go out of bounds
                 qreal viewSize = itemView()->boundingRect().size().height();
                 if (layoutPreferredHeight + pos().y() < viewSize) {
-                    // position is allways negative
+                    // position is always negative
                     // view out of bounds
                     if (diff > 0.0) {
                         QPointF posDiff(pos().x(), 0.0);