equal
deleted
inserted
replaced
23 #include <AknsDrawUtils.h> |
23 #include <AknsDrawUtils.h> |
24 #include <barsread.h> |
24 #include <barsread.h> |
25 #include <aknappui.h> |
25 #include <aknappui.h> |
26 #include <aknitemactionmenu.h> |
26 #include <aknitemactionmenu.h> |
27 #include <AknTasHook.h> // for testability hooks |
27 #include <AknTasHook.h> // for testability hooks |
28 #include <aknPriv.hrh> |
28 #include <AknPriv.hrh> |
29 #include "akntreelistview.h" |
29 #include "akntreelistview.h" |
30 #include "akntree.h" |
30 #include "akntree.h" |
31 #include "akntreelist.h" |
31 #include "akntreelist.h" |
32 #include "akntreeiterator.h" |
32 #include "akntreeiterator.h" |
33 #include "akntreelistphysicshandler.h" |
33 #include "akntreelistphysicshandler.h" |
2774 { |
2774 { |
2775 transApi->StopDrawing(); |
2775 transApi->StopDrawing(); |
2776 } |
2776 } |
2777 #endif // RD_UI_TRANSITION_EFFECTS_LIST |
2777 #endif // RD_UI_TRANSITION_EFFECTS_LIST |
2778 |
2778 |
|
2779 // text color, used to draw the separator line between list items |
|
2780 TRgb textColor( KRgbBlack ); |
|
2781 AknsUtils::GetCachedColor( AknsUtils::SkinInstance(), textColor, |
|
2782 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6 ); |
|
2783 |
2779 const TInt itemCount = iItems.Count(); |
2784 const TInt itemCount = iItems.Count(); |
2780 for ( TInt ii = 0; ii < itemCount; ++ii ) |
2785 for ( TInt ii = 0; ii < itemCount; ++ii ) |
2781 { |
2786 { |
2782 TRect drawRect( iItems[ii].Rect() ); |
2787 TRect drawRect( iItems[ii].Rect() ); |
2783 |
2788 |
2814 if ( transApi ) |
2819 if ( transApi ) |
2815 { |
2820 { |
2816 transApi->StopDrawing(); |
2821 transApi->StopDrawing(); |
2817 } |
2822 } |
2818 #endif |
2823 #endif |
|
2824 if ( ii < iBottomIndex ) |
|
2825 { |
|
2826 AknListUtils::DrawSeparator( gc, tfxDrawRect, textColor ); |
|
2827 } |
|
2828 |
2819 TBool focused = ( IsFocused() && FocusedItem() && |
2829 TBool focused = ( IsFocused() && FocusedItem() && |
2820 iItems[ii].Item() == FocusedItem() ); |
2830 iItems[ii].Item() == FocusedItem() ); |
2821 |
2831 |
2822 if ( SingleClickEnabled() && !HighlightEnabled() ) |
2832 if ( SingleClickEnabled() && !HighlightEnabled() ) |
2823 { |
2833 { |