src/hbwidgets/itemviews/hbindexfeedback_p.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbwidgets/itemviews/hbindexfeedback_p.cpp	Wed Jun 23 18:33:25 2010 +0300
+++ b/src/hbwidgets/itemviews/hbindexfeedback_p.cpp	Tue Jul 06 14:36:53 2010 +0300
@@ -133,6 +133,10 @@
         q, SLOT(_q_hideIndexFeedback()));
 
     createPrimitives();
+
+    // ensure that the index feedback is shown on top of the itemView in
+    // all cases. 
+    q->setZValue(1);
 }
 
 /*
@@ -418,7 +422,7 @@
         return;
     }
 
-    QRectF contentRect = mItemView->rect();
+    QRectF contentRect = mItemView->mapToItem(q, mItemView->rect()).boundingRect();
     
     HbScrollBar *verticalScrollBar = mItemView->verticalScrollBar();
     HbScrollBar *horizontalScrollBar = mItemView->horizontalScrollBar();