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

List:       kde-devel
Subject:    Re: toolbar drop down menus?
From:       Max Howell <mail.kde.org () methylblue ! com>
Date:       2003-12-30 4:36:54
[Download RAW message or body]

On Tuesday 30 December 2003 04:15, Dominic Chambers wrote:
> I am trying to figure out how Konqueror and KMail do their drop down menus
> for buttons in the toolbar. In Konqueror, for example, the XMLUI file looks
> completely normal:
>
> <ToolBar fullWidth="true" name="mainToolBar" newline="true"><text>Main
> Toolbar</text>
>  <Action name="up"/>
>  <Action name="back"/>
>  <Action name="forward"/>
>  <Action name="home"/>
>  <Separator/>
>
> I had a dig round in the actual code, but I got a bit lost. Can anyone
> point me in the right direction here?
>
> Thanks again, Dominic.


I haven't checked the sources, but having just used one I imagine it's a 
KActionMenu. Use insert( KAction * ) and you can then plug the KActionMenu 
into toolbars and menus, it "is-a" action so you can use it with the XMLGUI 
framework.

Max
-- 
http://www.methylblue.com/
 
>> Visit http://mail.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