uifw/AvKon/aknhlist/src/akntreelistview.cpp
branchRCL_3
changeset 16 71dd06cfe933
parent 15 08e69e956a8c
child 18 0aa5fbdfbc30
equal deleted inserted replaced
15:08e69e956a8c 16:71dd06cfe933
   859         case KAknMessageFocusLost:
   859         case KAknMessageFocusLost:
   860             {
   860             {
   861             if ( HighlightEnabled() )
   861             if ( HighlightEnabled() )
   862                 {
   862                 {
   863                 EnableHighlight( EFalse );
   863                 EnableHighlight( EFalse );
       
   864                 // Redraw item
       
   865                 SetFocusedItem( FocusedItem(), FocusIndex(), ETrue );
   864                 }
   866                 }
   865             break;
   867             break;
   866             }
   868             }
   867             
   869             
   868         default:
   870         default:
   895         }
   897         }
   896     else
   898     else
   897         {
   899         {
   898         if( aPointerEvent.iType == TPointerEvent::EButton1Down )  
   900         if( aPointerEvent.iType == TPointerEvent::EButton1Down )  
   899             {
   901             {
       
   902             iFlags.Clear( EFlagIgnoreButtonUpEvent );
   900             iPreviouslyFocusedItem = FocusedItem(); 
   903             iPreviouslyFocusedItem = FocusedItem(); 
   901             }
   904             }
   902 
   905 
   903         iPhysicsHandler->HandlePointerEventL( aPointerEvent, iViewLevel, 
   906         iPhysicsHandler->HandlePointerEventL( aPointerEvent, iViewLevel, 
   904             MarkingOngoing(), iFlags.IsSet( EFlagShiftKeyPressed ), 
   907             MarkingOngoing(), iFlags.IsSet( EFlagShiftKeyPressed ), 
  1286                                                             &iItems );
  1289                                                             &iItems );
  1287         }
  1290         }
  1288 
  1291 
  1289     iIsPressedDownState = EFalse;
  1292     iIsPressedDownState = EFalse;
  1290     iIsDragged = EFalse;
  1293     iIsDragged = EFalse;
  1291     iItemActionMenu = CAknItemActionMenu::RegisterCollectionL( *this );
  1294     iItemActionMenu = CAknItemActionMenu::RegisterCollectionL( *this, this );
       
  1295 
  1292     if ( iItemActionMenu )
  1296     if ( iItemActionMenu )
  1293         {
  1297         {
  1294         iLongTapDetector = CAknLongTapDetector::NewL( this );
  1298         iLongTapDetector = CAknLongTapDetector::NewL( this );
  1295         }
  1299         }
  1296 
  1300 
  2872                     TRect offsetRect( drawRect );
  2876                     TRect offsetRect( drawRect );
  2873                     offsetRect.Move( 0, -offset );
  2877                     offsetRect.Move( 0, -offset );
  2874                     AknListUtils::DrawSeparator( gc, offsetRect, textColor, skin );
  2878                     AknListUtils::DrawSeparator( gc, offsetRect, textColor, skin );
  2875                     }
  2879                     }
  2876 
  2880 
  2877                 TBool focused = ( IsFocused() && FocusedItem() &&
  2881                 TBool focused = ( FocusedItem() &&
  2878                     iItems[ii].Item() == FocusedItem() );
  2882                     iItems[ii].Item() == FocusedItem() );
  2879 
  2883 
  2880                 if ( SingleClickEnabled() && !HighlightEnabled() )
  2884                 if ( SingleClickEnabled() && !HighlightEnabled() )
  2881                     {
  2885                     {
  2882                     focused = EFalse;
  2886                     focused = EFalse;