diff -r 24062c24fe38 -r 2a26698d78ba phoneuis/easydialing/src/easydialinglistboxitemdrawer.cpp --- a/phoneuis/easydialing/src/easydialinglistboxitemdrawer.cpp Fri Mar 12 15:42:40 2010 +0200 +++ b/phoneuis/easydialing/src/easydialinglistboxitemdrawer.cpp Mon Mar 15 12:40:24 2010 +0200 @@ -26,8 +26,8 @@ #include #include #include - #include +#include // EXTERNAL DATA STRUCTURES @@ -155,32 +155,15 @@ aItemIsCurrent && highlightShown, colors ); - //currently few themes doesnt support IsListSeperatorLines method therefore it is commented out - // for the time being in the below if loop - - if ( /*AknsDrawUtils::IsListSeperatorLines( AknsUtils::SkinInstance() ) &&*/ aItemTextRect.iTl.iY > iViewRect.iTl.iY ) + if ( aItemTextRect.iBr.iY < iViewRect.iBr.iY && aItemIndex < iModel->NumberOfItems() - 1 ) { if ( transApi ) { transApi->StartDrawing( MAknListBoxTfxInternal::EListItem ); } + + AknListUtils::DrawSeparator( *iGc, aItemTextRect, iTextColor ); - TRgb lineColor; - TInt retVal = AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), lineColor, KAknsIIDFsLineColors, - EAknsCIFsLineColorsCG1); - // we are fetching lineColor from the skin.Incase, if there isn't any lineColor then we are using - //iMatchingBack as a backup line Color - if( retVal == KErrNone) - { - iGc->SetPenColor(lineColor); - } - else - { - iGc->SetPenColor(iMatchingBack); - } - iGc->SetPenStyle(CGraphicsContext::ESolidPen); - iGc->DrawLine( aItemTextRect.iTl, TPoint( aItemTextRect.iBr.iX, aItemTextRect.iTl.iY) ); - if ( transApi ) { transApi->StopDrawing();