equal
deleted
inserted
replaced
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 { |