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

List:       kde-devel
Subject:    RE: Question of KSelectAction
From:       "Jian Huang" <jian () macadamian ! com>
Date:       2001-02-01 17:39:25
[Download RAW message or body]


On Wednesday 31 January 2001 15:30, Carsten Pfeiffer wrote:
> On Wed, Jan 31, 2001 at 08:17:45PM +0100, Christian Gebauer wrote:
> > 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.
>
> or use KMenuAction.

It is actually KActionMenu. :) And that is what you want to use in this
case...


Thanks a lot for your ideas.
I used the KActionMenu with the following codes:

  newFileAction = new KActionMenu(i18n("&New"), "filenew",
                              actionCollection(), "new_file");
  newFileAction->popupMenu()->insertItem("Small");
  newFileAction->popupMenu()->insertItem("Medium");
  newFileAction->popupMenu()->insertItem("Large");

I can get the submenu in menubar but can NOT get it from the
"filenew" icon in toolbar.

Could you tell me what could be the problems?
Thanks again
Jian Huang


 
>> 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