diff -r e686773b3f54 -r 04ab22b956c2 phonebookui/Phonebook2/UIControls/src/cpbk2contactviewcustomlistboxitemdrawer.cpp --- a/phonebookui/Phonebook2/UIControls/src/cpbk2contactviewcustomlistboxitemdrawer.cpp Tue Feb 02 10:12:17 2010 +0200 +++ b/phonebookui/Phonebook2/UIControls/src/cpbk2contactviewcustomlistboxitemdrawer.cpp Fri Feb 19 22:40:27 2010 +0200 @@ -170,6 +170,23 @@ // not used in S60 } +inline void DrawSeparator( + CGraphicsContext& aGc, + const TRect& aRect, const TRgb& aColor ) + { + aGc.SetBrushStyle( CGraphicsContext::ENullBrush ); + aGc.SetPenStyle( CGraphicsContext::ESolidPen ); + TRgb color( aColor ); + color.SetAlpha( 32 ); + aGc.SetPenColor( color ); + TRect lineRect( aRect ); + TInt gap = AknLayoutScalable_Avkon::listscroll_gen_pane( 0 ).LayoutLine().it; + lineRect.Shrink( gap, 0 ); + lineRect.Move( 0, -1 ); + aGc.DrawLine( TPoint( lineRect.iTl.iX, lineRect.iBr.iY ), + TPoint( lineRect.iBr.iX, lineRect.iBr.iY ) ); + } + void CPbk2ContactViewCustomListBoxItemDrawer::DrawItemText( TInt aItemIndex, const TRect& aItemTextRect, @@ -246,6 +263,13 @@ ColumnData()->SetCurrentItemIndex(aItemIndex); ColumnData()->Draw(Properties(aItemIndex), *iGc,&des,aItemTextRect,(aItemIsCurrent /*|| aViewIsEmphasized*/),colors, aItemIndex); + const TInt itemCount(iModel->NumberOfItems()); + if( itemCount - 1 > aItemIndex ) + { + DrawSeparator( *iGc, aItemTextRect, iTextColor ); + } + + #ifdef RD_UI_TRANSITION_EFFECTS_LIST if ( transApi ) {