logo       

Re: Dynamically add/remove KAction with toolbar?: msg#00399

kde-devel

Subject: Re: Dynamically add/remove KAction with toolbar?

On Thursday 30 July 2009, Parker Coates wrote:
> On Thu, Jul 30, 2009 at 10:04, Robin Atwood<robin@xxxxxxxxx> 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 Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise