|
Re: Dynamically add/remove KAction with toolbar?: msg#00398kde-devel
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.html#6bb023822002f53370e7c2858d3042ff) For an example, see the KPat toolbar. (See kpatui.rc and updateGameActionList() in pwidget.cpp) Parker >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |