equal
deleted
inserted
replaced
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 // --------------------------------------------------------------------------- |