uifw/AvKon/src/aknindicatorpopupcontent.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 59 978afdc0236f
equal deleted inserted replaced
64:85902f042028 72:a5e7a4f63858
   603         {
   603         {
   604         CBase* currentFocusedItem = NULL;
   604         CBase* currentFocusedItem = NULL;
   605         switch ( aPointerEvent.iType )
   605         switch ( aPointerEvent.iType )
   606             {
   606             {
   607             case TPointerEvent::EButton1Down:
   607             case TPointerEvent::EButton1Down:
   608                 iOrdinal = DrawableWindow()->OrdinalPosition();
       
   609                 // Set flag that down was inside the popup.
   608                 // Set flag that down was inside the popup.
   610                 iFlags |= EAknIndicatorPopupContentButton1Down;
   609                 iFlags |= EAknIndicatorPopupContentButton1Down;
   611                 iPreviousPressedDownItem = NULL;
   610                 iPreviousPressedDownItem = NULL;
   612                 
   611                 
   613                 if ( iClock->Rect().Contains( aPointerEvent.iPosition ))
   612                 if ( iClock->Rect().Contains( aPointerEvent.iPosition ))
   675                     {
   674                     {
   676                     // Up happened, reset button down flag.
   675                     // Up happened, reset button down flag.
   677                     iFlags &= ( ~EAknIndicatorPopupContentButton1Down );
   676                     iFlags &= ( ~EAknIndicatorPopupContentButton1Down );
   678                     iEnablePressedDownState = EFalse;
   677                     iEnablePressedDownState = EFalse;
   679 
   678 
   680                     if ( iOrdinal != DrawableWindow()->OrdinalPosition() )
       
   681                         {
       
   682                         Window().Invalidate( iPressedDownRect );
       
   683                         break;
       
   684                         }
       
   685 
       
   686                     if ( iBatteryPlugin &&
   679                     if ( iBatteryPlugin &&
   687                          iBatteryArea.Contains( aPointerEvent.iPosition ) )
   680                          iBatteryArea.Contains( aPointerEvent.iPosition ) )
   688                         {
   681                         {
   689                         ReportEventL(
   682                         ReportEventL(
   690                             static_cast<MCoeControlObserver::TCoeEvent>(
   683                             static_cast<MCoeControlObserver::TCoeEvent>(