phonebookui/Phonebook2/UIControls/src/CPbk2AddItemToContactDlg.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
child 35 4ae315f230bc
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
   390 
   390 
   391     // Create listbox model
   391     // Create listbox model
   392     CModel* listBoxModel = new(ELeave) CModel( aAddItems, *iconArray );
   392     CModel* listBoxModel = new(ELeave) CModel( aAddItems, *iconArray );
   393     iListBox->Model()->SetItemTextArray(listBoxModel);
   393     iListBox->Model()->SetItemTextArray(listBoxModel);
   394     iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);
   394     iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);
       
   395     
       
   396     CEikStatusPane* statusPane = iAvkonAppUi->StatusPane();
       
   397     if (statusPane)
       
   398         {
       
   399         TInt currentStatusPaneResId = statusPane->CurrentLayoutResId();
       
   400         // Make the statusPane update when it was already set to EMPTY status,
       
   401         // in other case it'll update itself automaticlly
       
   402         if( currentStatusPaneResId == R_AVKON_STATUS_PANE_LAYOUT_EMPTY )
       
   403             {
       
   404             statusPane->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_USUAL );
       
   405             }
       
   406         }    
   395     }
   407     }
   396 
   408 
   397 // --------------------------------------------------------------------------
   409 // --------------------------------------------------------------------------
   398 // CPbk2AddItemToContactDlg::ExecutePopupL
   410 // CPbk2AddItemToContactDlg::ExecutePopupL
   399 // --------------------------------------------------------------------------
   411 // --------------------------------------------------------------------------