menufw/menufwui/mmwidgets/src/mmlistboxitemdrawer.cpp
branchRCL_3
changeset 12 9674c1a575e9
parent 9 f966699dea19
child 19 79311d856354
equal deleted inserted replaced
11:ff572dfe6d86 12:9674c1a575e9
   291 //
   291 //
   292 // -----------------------------------------------------------------------------
   292 // -----------------------------------------------------------------------------
   293 //
   293 //
   294 void CMmListBoxItemDrawer::DrawFloatingItems(TRect currentlyDrawnRect)
   294 void CMmListBoxItemDrawer::DrawFloatingItems(TRect currentlyDrawnRect)
   295     {
   295     {
       
   296     TBool redrawItemBackground = IsRedrawItemBackgroundEnabled( );
   296     SetRedrawItemBackground( EFalse );
   297     SetRedrawItemBackground( EFalse );
   297     for(TInt i(iFloatingItems.Count()-1); i >= 0 ; i--)
   298     for(TInt i(iFloatingItems.Count()-1); i >= 0 ; i--)
   298         {
   299         {
   299         TMmFloatingItemType type = iFloatingItems[i].GetFloatingItemType();
   300         TMmFloatingItemType type = iFloatingItems[i].GetFloatingItemType();
   300         if ( iFloatingItems[i].IsFloatingItemValid() )
   301         if ( iFloatingItems[i].IsFloatingItemValid() )
   325         else
   326         else
   326         	{
   327         	{
   327             iFloatingItems.Remove(i);
   328             iFloatingItems.Remove(i);
   328         	}
   329         	}
   329         }
   330         }
   330     SetRedrawItemBackground( ETrue );
   331     SetRedrawItemBackground( redrawItemBackground );
   331     }
   332     }
   332 
   333 
   333 // -----------------------------------------------------------------------------
   334 // -----------------------------------------------------------------------------
   334 //
   335 //
   335 // -----------------------------------------------------------------------------
   336 // -----------------------------------------------------------------------------
  1033 void CMmListBoxItemDrawer::DrawActualIndicatorItem( TInt aItemIndex, TRect /*actualItemRect*/ )
  1034 void CMmListBoxItemDrawer::DrawActualIndicatorItem( TInt aItemIndex, TRect /*actualItemRect*/ )
  1034 	{
  1035 	{
  1035 	if ( iDrawMoveIndicators )
  1036 	if ( iDrawMoveIndicators )
  1036 		{
  1037 		{
  1037 		iIsIndicatorItem = ETrue;
  1038 		iIsIndicatorItem = ETrue;
       
  1039 		TBool redrawItemBackground =
       
  1040             IsRedrawItemBackgroundEnabled( );
  1038 		SetRedrawItemBackground( EFalse );
  1041 		SetRedrawItemBackground( EFalse );
  1039 
  1042 
  1040 		DrawActualItem( aItemIndex, AdjustItemRect( aItemIndex ) , EFalse, EFalse, EFalse, EFalse);
  1043 		DrawActualItem( aItemIndex, AdjustItemRect( aItemIndex ) , EFalse, EFalse, EFalse, EFalse);
  1041 
  1044 
  1042 		SetRedrawItemBackground( ETrue );
  1045 		SetRedrawItemBackground( redrawItemBackground );
  1043 		iIsIndicatorItem = EFalse;
  1046 		iIsIndicatorItem = EFalse;
  1044 		}
  1047 		}
  1045 	}
  1048 	}
  1046 
  1049 
  1047 // -----------------------------------------------------------------------------
  1050 // -----------------------------------------------------------------------------