equal
deleted
inserted
replaced
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 |