Actions in the context-menu

Andreas Pakulat apaku at gmx.de
Mon Feb 15 08:57:18 UTC 2010


On 15.02.10 02:41:00, Jonathan Schmidt-Dominé - Developer wrote:
> Hi Kate and KDevelop devs!
> 
> What is the proper way to add an action to the context-menu from a plugin? I 
> simply used KTextEditor::View::contextMenu in the KIcon-Inserter-Plugin. Now 
> KDevelop seems to have a new context-menu and it does not work in KDevelop. I 
> used contextMenuAboutToShow to ensure that it has been created, but it does 
> not work, it will be replaced by KDevelop.

I hope that Milian can clarify this during the current KDevelop/Kate
Sprint. Right now KDevelop clears the menu every time its requested (it
connects to Kate's contextMenuAboutToShow signal) as otherwise the
entries added by kdevelop are getting duplicated again and again.

Andreas

-- 
You love peace.




More information about the KDevelop-devel mailing list