camerauis/cameraapp/generic/common/src/CamCaptureSetupListBoxModel.cpp
branchRCL_3
changeset 57 2c87b2808fd7
parent 54 bac7acad7cb3
child 67 756ad29ed18e
equal deleted inserted replaced
54:bac7acad7cb3 57:2c87b2808fd7
   223                                
   223                                
   224         if( SettingValueSupportedL( listItem, aSettingItem ) )
   224         if( SettingValueSupportedL( listItem, aSettingItem ) )
   225         	{
   225         	{
   226         	iItemArray.AppendL( listItem );
   226         	iItemArray.AppendL( listItem );
   227         	}
   227         	}
       
   228         else
       
   229             {
       
   230             delete listItem;
       
   231             }
   228         
   232         
   229         CleanupStack::Pop( listItem );
   233         CleanupStack::Pop( listItem );
   230         }    
   234         }    
   231     CleanupStack::PopAndDestroy(); // reader
   235     CleanupStack::PopAndDestroy(); // reader
   232 	}
   236 	}
   236 // Read in layout data from resource
   240 // Read in layout data from resource
   237 // ---------------------------------------------------------------------------
   241 // ---------------------------------------------------------------------------
   238 //
   242 //
   239 void CCamCaptureSetupListBoxModel::ReadLayoutData( TRect aListBoxRect )
   243 void CCamCaptureSetupListBoxModel::ReadLayoutData( TRect aListBoxRect )
   240     {
   244     {
   241     if ( CamUtility::IsNhdDevice() )
   245     if ( AknLayoutUtils::PenEnabled() )
   242         { 
   246         { 
   243         iIconLayoutData.LayoutRect( aListBoxRect, 
   247         iIconLayoutData.LayoutRect( aListBoxRect, 
   244                           AknLayoutScalable_Apps::cset_list_set_pane_g3( 0 ) );
   248                           AknLayoutScalable_Apps::cset_list_set_pane_g3( 0 ) );
   245         iRadioButtonLayoutData.LayoutRect( aListBoxRect, 
   249         iRadioButtonLayoutData.LayoutRect( aListBoxRect, 
   246                           AknLayoutScalable_Apps::cset_list_set_pane_g1( 0 ) );
   250                           AknLayoutScalable_Apps::cset_list_set_pane_g1( 0 ) );