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

List:       kde-devel
Subject:    Re: Dynamically add/remove KAction with toolbar?
From:       Robin Atwood <robin () binro ! org>
Date:       2009-07-30 17:00:55
Message-ID: 200907310000.59401.robin () binro ! org
[Download RAW message or body]

On Thursday 30 July 2009, Parker Coates wrote:
> On Thu, Jul 30, 2009 at 10:04, Robin Atwood<robin@binro.org> wrote:
> > I want to be able to add a KAction with an embedded line-edit dynamically
> > to a toolbar when I click on another icon. That is, I have done all the
> > set-up for the KAction except for the
> > "actioncollection()->addAction(...)" which I do in another actions slot.
> > Trouble is, it doesn't work. I am using the XML GUI framework; does this
> > mean the toolbar is set in concrete?
>
> You might be able to do what you want using pluggable action lists.
> (http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKXMLGUIClient.h
>tml#6bb023822002f53370e7c2858d3042ff)
>
> For an example, see the KPat toolbar. (See kpatui.rc and
> updateGameActionList() in pwidget.cpp)

Parker -
This looks like what I want, thanks for the tip!

Cheers
-Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------









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