idlehomescreen/nativeuicontroller/src/aistyluspopupmenucontent.cpp
branchRCL_3
changeset 102 ba63c83f4716
parent 88 3321d3e205b6
equal deleted inserted replaced
93:b01126ce0bec 102:ba63c83f4716
   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     CleanupStack::PushL( item );
   111 
   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.AppendL( item );
   117     iItems.Append( item );
   118     CleanupStatck::Pop( item );
   118     iCommands.Append( aCommandId );
   119     iCommands.AppendL( aCommandId );    
       
   120     SizeChanged();
   119     SizeChanged();
   121     }
   120     }
   122 
   121 
   123 
   122 
   124 // ---------------------------------------------------------------------------
   123 // ---------------------------------------------------------------------------