commsconfig/cscapplicationui/src/cscservicecontainer.cpp
branchRCL_3
changeset 16 6134b5029079
parent 11 bddb6d4447db
child 24 8c9c07ad8b6b
equal deleted inserted replaced
15:ed1e38b404e5 16:6134b5029079
   218         else
   218         else
   219             {
   219             {
   220             uiPlugins.AppendL( uiExtension );
   220             uiPlugins.AppendL( uiExtension );
   221             }
   221             }
   222         }
   222         }
   223 
   223   
   224     const TInt itemHeight( iListBox->ItemHeight() );
   224     iListBoxItemHeight = iListBox->ItemHeight();
   225     TInt iconSize( KIconSizeQvgaPortrait ); // Default icon size (QVGA portrait).
   225     
   226     if ( KItemHeightQvgaLandscape == itemHeight ) // QVGA landscape
   226     TInt iconSize( 0 );
   227         {
   227     if ( iListBoxItemHeight == KItemHeightPortrait )
   228         iconSize = KIconSizeQvgaLandscape;
   228         {
   229         }
   229         iconSize = iListBoxItemHeight - KIconSizeCorrectionPortrait;
   230                
   230         }
       
   231     else
       
   232         {
       
   233         iconSize = iListBoxItemHeight - KIconSizeCorrectionLandscape;
       
   234         }
       
   235                  
   231     for ( TUint i( 0 ) ; i < iUiExtensionCount ; i++ )
   236     for ( TUint i( 0 ) ; i < iUiExtensionCount ; i++ )
   232         {
   237         {
   233         TUiExtensionPluginInfo uiExtension = uiPlugins[i];
   238         TUiExtensionPluginInfo uiExtension = uiPlugins[i];
   234                         
   239                         
   235         if ( 0 == uiExtension.iPlace )
   240         if ( 0 == uiExtension.iPlace )
   749 void CCSCServiceContainer::SizeChanged()
   754 void CCSCServiceContainer::SizeChanged()
   750     {
   755     {
   751     if ( iListBox )
   756     if ( iListBox )
   752         {
   757         {
   753         iListBox->SetRect( Rect() );
   758         iListBox->SetRect( Rect() );
       
   759         
       
   760         // Update view if portrait/landscape change happened
       
   761         if ( iListBoxItemHeight != iListBox->ItemHeight() )
       
   762             {
       
   763             TRAP_IGNORE( UpdateServiceViewL() );
       
   764             }        
   754         }
   765         }
   755     }
   766     }
   756     
   767     
   757 
   768 
   758 // ---------------------------------------------------------------------------
   769 // ---------------------------------------------------------------------------