idlehomescreen/widgetmanager/src/wmlistbox.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 11 ff572dfe6d86
child 18 d05a55b217df
--- a/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Fri Mar 12 15:41:49 2010 +0200
+++ b/idlehomescreen/widgetmanager/src/wmlistbox.cpp	Mon Mar 15 12:39:47 2010 +0200
@@ -226,8 +226,20 @@
 
     AknsUtils::GetCachedColor( 
                     skin, textColor, KAknsIIDQsnTextColors, index );
-    TAknTextLineLayout titleTextLayout = 
-              AknLayoutScalable_Apps::listrow_wgtman_pane_t1().LayoutLine();
+
+    TAknTextLineLayout titleTextLayout;
+    if ( !wData.IsUninstalling() )
+        {
+        // centered 1 row layout 
+        titleTextLayout = 
+              AknLayoutScalable_Apps::listrow_wgtman_pane_t1(1).LayoutLine();
+        }
+    else
+        {
+        // 2 row layout for uninstalling
+        titleTextLayout = 
+                AknLayoutScalable_Apps::listrow_wgtman_pane_t1(0).LayoutLine();
+        }
 
     TAknLayoutText textLayoutTitle;
     textLayoutTitle.LayoutText( itemRect, titleTextLayout );
@@ -577,26 +589,6 @@
     }
 
 // ---------------------------------------------------------
-// CWmListBox::HandlePointerEventL
-// ---------------------------------------------------------
-//
-void CWmListBox::HandlePointerEventL( const TPointerEvent& aPointerEvent )
-    {
-	if ( Rect().Contains( aPointerEvent.iPosition ) )
-		{
-        TInt itemIndex = CurrentListBoxItemIndex();
-        TBool itemPointed = View()->XYPosToItemIndex(
-                                aPointerEvent.iPosition,
-                                itemIndex );
-        if ( itemIndex >= 0 && itemPointed )
-            {
-            SetCurrentItemIndex( itemIndex ); //update index
-            }
-		}
-	CAknDouble2LargeStyleListBox::HandlePointerEventL( aPointerEvent );
-    }
-
-// ---------------------------------------------------------
 // CWmListBox::LogoSize
 // ---------------------------------------------------------
 //