equal
deleted
inserted
replaced
942 { |
942 { |
943 if ( iLongTappedItem != KErrNotFound ) |
943 if ( iLongTappedItem != KErrNotFound ) |
944 { |
944 { |
945 EnableHighlight( EFalse ); |
945 EnableHighlight( EFalse ); |
946 iListBox.iView->DrawItem( iLongTappedItem ); |
946 iListBox.iView->DrawItem( iLongTappedItem ); |
947 iListBox.iView->SetCurrentItemIndex( 0 ); |
|
948 iLongTappedItem = KErrNotFound; |
947 iLongTappedItem = KErrNotFound; |
949 } |
948 } |
950 } |
949 } |
951 |
950 |
952 |
951 |
2099 || iListBoxExt && iListBoxExt->iPhysics |
2098 || iListBoxExt && iListBoxExt->iPhysics |
2100 && currentItemIndex == ( topItemIndex + numberOfItems - 1 ) ) |
2099 && currentItemIndex == ( topItemIndex + numberOfItems - 1 ) ) |
2101 { |
2100 { |
2102 if ( iListBoxExt && iListBoxExt->iSingleClickEnabled ) |
2101 if ( iListBoxExt && iListBoxExt->iSingleClickEnabled ) |
2103 { |
2102 { |
2104 // is single click is enabled, highlight must also be visible |
2103 // If single click is enabled, highlight must also be visible |
2105 if ( iListBoxExt->CollectionState() |
2104 if ( iListBoxExt->CollectionState() |
2106 & MAknCollection::EStateHighlightVisible ) |
2105 & MAknCollection::EStateHighlightVisible ) |
2107 { |
2106 { |
2108 newTopItemIndex = iView->CalcNewTopItemIndexSoItemIsVisible( currentItemIndex ); |
2107 newTopItemIndex = iView->CalcNewTopItemIndexSoItemIsVisible( currentItemIndex ); |
2109 } |
2108 } |
2400 iView->SetDisableRedraw(ETrue); |
2399 iView->SetDisableRedraw(ETrue); |
2401 UpdateCurrentItem(aItemIndex); |
2400 UpdateCurrentItem(aItemIndex); |
2402 iView->SetDisableRedraw(redrawDisabled); |
2401 iView->SetDisableRedraw(redrawDisabled); |
2403 |
2402 |
2404 if ( iListBoxExt && iListBoxExt->iPhysics && aItemIndex == 0 ) |
2403 if ( iListBoxExt && iListBoxExt->iPhysics && aItemIndex == 0 ) |
2405 { |
2404 { |
2406 iView->SetItemOffsetInPixels( 0 ); |
2405 iView->SetItemOffsetInPixels( 0 ); |
2407 } |
2406 } |
2408 _AKNTRACE_FUNC_EXIT; |
2407 _AKNTRACE_FUNC_EXIT; |
2409 } |
2408 } |
2410 |
2409 |
3091 iView->CalcDataWidth(); |
3090 iView->CalcDataWidth(); |
3092 iView->CalcBottomItemIndex(); |
3091 iView->CalcBottomItemIndex(); |
3093 UpdateScrollBarsL(); |
3092 UpdateScrollBarsL(); |
3094 UpdateScrollBarThumbs(); |
3093 UpdateScrollBarThumbs(); |
3095 iView->ClearFlags(CListBoxView::EItemCountModified); |
3094 iView->ClearFlags(CListBoxView::EItemCountModified); |
|
3095 |
|
3096 |
|
3097 if ( iListBoxExt->iLongTappedItem != KErrNotFound ) |
|
3098 { |
|
3099 iListBoxExt->EnableHighlight( EFalse ); |
|
3100 } |
3096 |
3101 |
3097 FireItemChange(); |
3102 FireItemChange(); |
3098 |
3103 |
3099 if ( iListBoxExt && iListBoxExt->iPhysics ) |
3104 if ( iListBoxExt && iListBoxExt->iPhysics ) |
3100 { |
3105 { |
4690 |
4695 |
4691 if ( iListBoxExt->iPhysics && |
4696 if ( iListBoxExt->iPhysics && |
4692 iListBoxExt->iPhysics->OngoingPhysicsAction() == CAknPhysics::EAknPhysicsActionFlicking ) |
4697 iListBoxExt->iPhysics->OngoingPhysicsAction() == CAknPhysics::EAknPhysicsActionFlicking ) |
4693 { |
4698 { |
4694 iListBoxExt->iFeedbackType = ETouchFeedbackList; |
4699 iListBoxExt->iFeedbackType = ETouchFeedbackList; |
4695 } |
|
4696 |
|
4697 if ( !iListBoxExt->iPhysics || itemIndex == iView->CurrentItemIndex() ) |
|
4698 { |
|
4699 iListBoxExt->ImmediateFeedback( iListBoxExt->iFeedbackType, |
|
4700 TTouchFeedbackType(ETouchFeedbackVibra | ETouchFeedbackAudio), |
|
4701 aPointerEvent ); |
|
4702 } |
4700 } |
4703 } |
4701 } |
4704 iListBoxExt->iEventModifiers = aPointerEvent.iModifiers; |
4702 iListBoxExt->iEventModifiers = aPointerEvent.iModifiers; |
4705 CListBoxView::TSelectionMode selectionMode = CListBoxView::ENoSelection; |
4703 CListBoxView::TSelectionMode selectionMode = CListBoxView::ENoSelection; |
4706 TBool shiftKeyPressed = EFalse; |
4704 TBool shiftKeyPressed = EFalse; |
5807 TInt index = View()->CurrentItemIndex(); |
5805 TInt index = View()->CurrentItemIndex(); |
5808 if ( index != KErrNotFound ) |
5806 if ( index != KErrNotFound ) |
5809 { |
5807 { |
5810 Window().Invalidate( TRect( View()->ItemPos(index), |
5808 Window().Invalidate( TRect( View()->ItemPos(index), |
5811 View()->ItemSize() ) ); |
5809 View()->ItemSize() ) ); |
5812 if( iItemDrawer->Flags() & |
|
5813 CListItemDrawer::ESingleClickDisabledHighlight ) |
|
5814 { |
|
5815 iView->SetCurrentItemIndex( 0 ); |
|
5816 } |
|
5817 } |
5810 } |
5818 break; |
5811 break; |
5819 } |
5812 } |
5820 case KEikDynamicLayoutVariantSwitch: |
5813 case KEikDynamicLayoutVariantSwitch: |
5821 case KEikMessageColorSchemeChange: |
5814 case KEikMessageColorSchemeChange: |