emailuis/emailui/src/FreestyleEmailUiMailListVisualiser.cpp
branchRCL_3
changeset 18 6b8f3b30d0ec
parent 17 67369d1b217f
child 20 efd4f1afd43e
equal deleted inserted replaced
17:67369d1b217f 18:6b8f3b30d0ec
  5614 
  5614 
  5615 	// First set pos, widht and height
  5615 	// First set pos, widht and height
  5616   	iControlBarControl->SetRectL( iAppUi.LayoutHandler()->GetControlBarRect() );
  5616   	iControlBarControl->SetRectL( iAppUi.LayoutHandler()->GetControlBarRect() );
  5617 
  5617 
  5618     const TRect newEmailButtonRect( iAppUi.LayoutHandler()->GetControlBarNewEmailButtonRect() );
  5618     const TRect newEmailButtonRect( iAppUi.LayoutHandler()->GetControlBarNewEmailButtonRect() );
       
  5619 	//Add comments by luo gen(e0645320)
       
  5620 	//The position of button should be set according to the size of button, so set size first
       
  5621     iNewEmailButton->SetSize( newEmailButtonRect.Size() );
  5619     iNewEmailButton->SetPos( newEmailButtonRect.iTl );
  5622     iNewEmailButton->SetPos( newEmailButtonRect.iTl );
  5620     iNewEmailButton->SetSize( newEmailButtonRect.Size() );
       
  5621 
  5623 
  5622     const TRect folderButtonRect( iAppUi.LayoutHandler()->GetControlBarFolderListButtonRect() );
  5624     const TRect folderButtonRect( iAppUi.LayoutHandler()->GetControlBarFolderListButtonRect() );
       
  5625     iFolderListButton->SetSize( folderButtonRect.Size() );
  5623   	iFolderListButton->SetPos( folderButtonRect.iTl );
  5626   	iFolderListButton->SetPos( folderButtonRect.iTl );
  5624   	iFolderListButton->SetSize( folderButtonRect.Size() );
       
  5625 
  5627 
  5626     const TRect sortButtonRect( iAppUi.LayoutHandler()->GetControlBarSortButtonRect() );
  5628     const TRect sortButtonRect( iAppUi.LayoutHandler()->GetControlBarSortButtonRect() );
       
  5629     iSortButton->SetSize( sortButtonRect.Size() );
  5627    	iSortButton->SetPos( sortButtonRect.iTl );
  5630    	iSortButton->SetPos( sortButtonRect.iTl );
  5628     iSortButton->SetSize( sortButtonRect.Size() );
       
  5629 
  5631 
  5630 	TInt var = Layout_Meta_Data::IsLandscapeOrientation() ? 1 : 0;
  5632 	TInt var = Layout_Meta_Data::IsLandscapeOrientation() ? 1 : 0;
  5631 	TAknLayoutText textLayout;
  5633 	TAknLayoutText textLayout;
  5632 	if ( Layout_Meta_Data::IsLandscapeOrientation() )
  5634 	if ( Layout_Meta_Data::IsLandscapeOrientation() )
  5633 		{
  5635 		{