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_71.1.17.1.57 % << Don't touch! Updated by Synergy at check-out. |
15 * Version : %version: MM_71.1.17.1.59 % << Don't touch! Updated by Synergy at check-out. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 |
19 |
20 #include <e32keys.h> |
20 #include <e32keys.h> |
235 |
235 |
236 TBool highlightVisibleBefore = iWidget->IsVisible() && IsHighlightVisible(); |
236 TBool highlightVisibleBefore = iWidget->IsVisible() && IsHighlightVisible(); |
237 CCoeControl::HandleResourceChange( aType ); |
237 CCoeControl::HandleResourceChange( aType ); |
238 if ( highlightVisibleBefore ) |
238 if ( highlightVisibleBefore ) |
239 { |
239 { |
240 SetHighlightVisibilityL( ETrue ); |
240 TRAP_IGNORE( SetHighlightVisibilityL( ETrue ) ); |
241 } |
241 } |
242 |
242 |
243 if ( aType == KEikDynamicLayoutVariantSwitch && !IsHighlightVisible() ) |
243 if ( aType == KEikDynamicLayoutVariantSwitch && !IsHighlightVisible() ) |
244 { |
244 { |
245 TRAP_IGNORE( SetDefaultHighlightL( EFalse ) ); |
245 TRAP_IGNORE( SetDefaultHighlightL( EFalse ) ); |
636 CCoeControl::HandlePointerEventL(aPointerEvent); |
636 CCoeControl::HandlePointerEventL(aPointerEvent); |
637 |
637 |
638 if ( aPointerEvent.iType == TPointerEvent::EButton1Down |
638 if ( aPointerEvent.iType == TPointerEvent::EButton1Down |
639 && itemExists ) |
639 && itemExists ) |
640 { |
640 { |
641 SetHighlightL( index );///////////-- |
641 SetHighlightL( index ); |
642 } |
642 } |
643 else if ( aPointerEvent.iType == TPointerEvent::EDrag |
643 else if ( aPointerEvent.iType == TPointerEvent::EDrag |
644 // the line below is needed to enable edit mode in the list widget |
644 // the line below is needed to enable edit mode in the list widget |
645 // because behaviour in the grid and list is different |
645 // because behaviour in the grid and list is different |
646 || (aPointerEvent.iType == TPointerEvent::EButtonRepeat && WidgetType() == EGridWidget )) |
646 || (aPointerEvent.iType == TPointerEvent::EButtonRepeat && WidgetType() == EGridWidget )) |