[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Question of KSelectAction
From:       Christian Gebauer <gebauer () bigfoot ! com>
Date:       2001-01-31 19:17:45
[Download RAW message or body]

Jian Huang wrote:
> 
> I use following code to initialize a KSelectAction object:
> 
> newFileAction = new KSelectAction(i18n("&New"), "filenew", 0,
>                                   actionCollection(), "new_file");
> 
> But I get a big combobox button on the toolbar,
> instead of a "filenew" icon.
> 
> Could anyone tell me what could be the reason?
> Thanks a lot
> 
This is the intended behaviour. If you want an icon with a pulldown
menu you should use the KToolBarPopupAction class. This class is
included in KDE 2.1, you will have to copy it if you still use KDE 2.0.

Greetings,
Christian
-- 
>><< Christian Gebauer >><< gebauer@bigfoot.com >><< ICQ 14916141 >><<
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic