idlehomescreen/nativeuicontroller/src/aistyluspopupmenucontent.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 0 f72a12da539e
equal deleted inserted replaced
34:5456b4e8b3a8 35:3321d3e205b6
   106         }
   106         }
   107     TInt flags = 0;
   107     TInt flags = 0;
   108     flags = KAknButtonTextLeft | KAknButtonSizeFitText | KAknButtonNoFrame;
   108     flags = KAknButtonTextLeft | KAknButtonSizeFitText | KAknButtonNoFrame;
   109     CAknButton* item = CAknButton::NewL( NULL, NULL, NULL, NULL, aItem,
   109     CAknButton* item = CAknButton::NewL( NULL, NULL, NULL, NULL, aItem,
   110         KNullDesC, flags, 0 );
   110         KNullDesC, flags, 0 );
   111 
   111     CleanupStack::PushL( item );
   112     item->SetTextFont( AknLayoutUtils::FontFromId(
   112     item->SetTextFont( AknLayoutUtils::FontFromId(
   113         AknLayoutScalable_Avkon::
   113         AknLayoutScalable_Avkon::
   114             list_single_popup_submenu_pane_t1( 0 ).LayoutLine().FontId() ) );
   114             list_single_popup_submenu_pane_t1( 0 ).LayoutLine().FontId() ) );
   115     item->SetBackground( Background() );
   115     item->SetBackground( Background() );
   116     item->SetObserver( &aObserver );
   116     item->SetObserver( &aObserver );
   117     iItems.Append( item );
   117     iItems.AppendL( item );
   118     iCommands.Append( aCommandId );
   118     CleanupStatck::Pop( item );
       
   119     iCommands.AppendL( aCommandId );    
   119     SizeChanged();
   120     SizeChanged();
   120     }
   121     }
   121 
   122 
   122 
   123 
   123 // ---------------------------------------------------------------------------
   124 // ---------------------------------------------------------------------------