emailuis/emailui/src/ncsattachmentfield.cpp
branchRCL_3
changeset 35 e64954c2c8e2
parent 2 5253a20d2a1e
equal deleted inserted replaced
34:cd2816114bd1 35:e64954c2c8e2
   661         const TPointerEvent& aPointerEvent )
   661         const TPointerEvent& aPointerEvent )
   662     {
   662     {
   663     FUNC_LOG;
   663     FUNC_LOG;
   664     CCoeControl::HandlePointerEventL( aPointerEvent );
   664     CCoeControl::HandlePointerEventL( aPointerEvent );
   665     
   665     
   666     if ( Rect().Contains( aPointerEvent.iPosition ) &&
   666     if ( aPointerEvent.iType == TPointerEvent::EButton1Down  &&
   667          aPointerEvent.iType == TPointerEvent::EButton1Down )
   667          Rect().Contains( aPointerEvent.iPosition ) )
   668         {
   668         {
   669         TBool focusedAttachmentLabelIndexChanged( EFalse );
   669         TBool focusedAttachmentLabelIndexChanged( EFalse );
   670         TInt i( 0 );
   670         TInt i( 0 );
   671         for ( ; i<iAttachmentLabelCount; ++i )
   671         for ( ; i<iAttachmentLabelCount; ++i )
   672             {
   672             {
   704             for ( TInt i( 0 ); i<iAttachmentLabelCount; ++i )
   704             for ( TInt i( 0 ); i<iAttachmentLabelCount; ++i )
   705                 {
   705                 {
   706                 iAttachmentLabels[i]->SetFocus( i==iFocusedLabelIndex );
   706                 iAttachmentLabels[i]->SetFocus( i==iFocusedLabelIndex );
   707                 }
   707                 }
   708             UpdateColors();
   708             UpdateColors();
   709             DrawNow();
   709             DrawDeferred();
   710             }
   710             }
   711         }
   711         }
   712     }
   712     }
   713 
   713 
   714 // -----------------------------------------------------------------------------
   714 // -----------------------------------------------------------------------------