calendarui/views/src/calendaycontainer.cpp
branchRCL_3
changeset 12 38571fd2a704
parent 0 f979ecb2b13e
child 36 9c5b1510919f
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
  1436     if(! AknLayoutUtils::PenEnabled() )
  1436     if(! AknLayoutUtils::PenEnabled() )
  1437         {
  1437         {
  1438         return;
  1438         return;
  1439         }
  1439         }
  1440         
  1440         
  1441     if(aPointerEvent.iType == TPointerEvent::EButton1Up)
  1441     if(aPointerEvent.iType == TPointerEvent::EButton1Down)
  1442         {
  1442         {
  1443         control = iLayoutManager->ControlOrNull();
  1443         control = iLayoutManager->ControlOrNull();
  1444         if(control)
  1444         if(control)
  1445             {
  1445             {
  1446             if(control->Rect().Contains(aPointerEvent.iPosition))
  1446             if(control->Rect().Contains(aPointerEvent.iPosition))
  1447                 {
  1447                 {
  1448                 control->HandlePointerEventL(aPointerEvent);		        		
  1448                 control->HandlePointerEventL(aPointerEvent);	
       
  1449                 return;
  1449                 }
  1450                 }
  1450             }
  1451             }
       
  1452         if (iListBox->Model()->NumberOfItems() <= 0)
       
  1453             {
       
  1454             iView->HandleCommandL(ECalenCmdOpenMskDialog);
       
  1455             return;
       
  1456             }
  1451         }
  1457         }
  1452 	        	
  1458 	        	
  1453     TInt pointerIndex(-1);
  1459     TInt pointerIndex(-1);    
  1454     if(iListBox->Model()->NumberOfItems() <= 0)
       
  1455         {   
       
  1456         iView->HandleCommandL(ECalenCmdOpenMskDialog);
       
  1457         return;
       
  1458         }
       
  1459      // Single click integration
  1460      // Single click integration
  1460     if ( aPointerEvent.iType == TPointerEvent::EButton1Down
  1461     if ( aPointerEvent.iType == TPointerEvent::EButton1Down
  1461             && iListBox->View()->XYPosToItemIndex(
  1462             && iListBox->View()->XYPosToItemIndex(
  1462                     aPointerEvent.iPosition, pointerIndex ) )
  1463                     aPointerEvent.iPosition, pointerIndex ) )
  1463         {
  1464         {