menufw/menufwui/mmwidgets/src/mmlistboxview.cpp
changeset 4 4d54b72983ae
parent 0 f72a12da539e
child 16 9674c1a575e9
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15  *  Version     : %version: MM_49 % << Don't touch! Updated by Synergy at check-out.
    15  *  Version     : %version: MM_50 % << Don't touch! Updated by Synergy at check-out.
    16  *
    16  *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 
    20 
   594 //
   594 //
   595 // -----------------------------------------------------------------------------
   595 // -----------------------------------------------------------------------------
   596 //
   596 //
   597 void CMmListBoxView::DrawSingleItem (TInt aItemIndex) const
   597 void CMmListBoxView::DrawSingleItem (TInt aItemIndex) const
   598 	{
   598 	{
   599 	CMmListBoxItemDrawer* itemDrawer= STATIC_CAST( CMmListBoxItemDrawer*, iItemDrawer );
   599 	CMmListBoxItemDrawer* itemDrawer =
   600 	TSize size = itemDrawer->GetItemSize( aItemIndex, CurrentItemIndex ()
   600             STATIC_CAST( CMmListBoxItemDrawer*, iItemDrawer );
   601 			== aItemIndex);
   601 	TBool highlightVisible = !( itemDrawer->Flags()
   602 	itemDrawer->SetItemCellSize (size);
   602 	        & CListItemDrawer::ESingleClickDisabledHighlight );
       
   603 	TSize size = itemDrawer->GetItemSize( aItemIndex, highlightVisible &&
       
   604 	        CurrentItemIndex() == aItemIndex );
       
   605 	itemDrawer->SetItemCellSize( size );
   603 	
   606 	
   604 	// CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   607 	// CMmListBoxView* view= CONST_CAST( CMmListBoxView*, this );
   605 	// view->SetItemHeight( size.iHeight );
   608 	// view->SetItemHeight( size.iHeight );
   606 	// The above line (currently commented-out) was originaly needed to correct
   609 	// The above line (currently commented-out) was originaly needed to correct
   607 	// some drawing-related error which used to occur when moving highlight with
   610 	// some drawing-related error which used to occur when moving highlight with