phonebookui/Phonebook2/ccapplication/ccadetailsviewplugin/src/ccappdetailsviewcontainer.cpp
branchRCL_3
changeset 6 e8e3147d53eb
parent 0 e686773b3f54
equal deleted inserted replaced
5:81f8547efd4f 6:e8e3147d53eb
   586 TInt CCCAppDetailsViewContainer::FocusedFieldIndex() const
   586 TInt CCCAppDetailsViewContainer::FocusedFieldIndex() const
   587 {
   587 {
   588     // PreCond:
   588     // PreCond:
   589     __ASSERT_DEBUG(iListBoxModel, Panic(EPanicPreCond_FocusedFieldIndex));
   589     __ASSERT_DEBUG(iListBoxModel, Panic(EPanicPreCond_FocusedFieldIndex));
   590 
   590 
   591     return iListBoxModel->FocusedListIndex();
   591     return iListBoxModel->FocusedFieldIndex();
   592 }
   592 }
   593 
   593 
   594 // --------------------------------------------------------------------------
   594 // --------------------------------------------------------------------------
   595 // CCCAppDetailsViewContainer::SetFocusedFieldIndex
   595 // CCCAppDetailsViewContainer::SetFocusedFieldIndex
   596 // --------------------------------------------------------------------------
   596 // --------------------------------------------------------------------------
   597 //
   597 //
   598 void CCCAppDetailsViewContainer::SetFocusedFieldIndex(TInt aIndex)
   598 void CCCAppDetailsViewContainer::SetFocusedFieldIndex(TInt aIndex)
   599 {
   599 {
   600     iListBoxModel->SetInitialFocusIndex(aIndex);
   600     TInt focusedItemIndex = iListBoxModel->FindFocusListIndexByStoreIndex( aIndex );
       
   601     iListBoxModel->SetInitialFocusIndex(focusedItemIndex);
   601 }
   602 }
   602 
   603 
   603 // --------------------------------------------------------------------------
   604 // --------------------------------------------------------------------------
   604 // CCCAppDetailsViewContainer::ContactsMarked
   605 // CCCAppDetailsViewContainer::ContactsMarked
   605 // --------------------------------------------------------------------------
   606 // --------------------------------------------------------------------------