[RFC] Context-Menu Handling in KDevelop4

Andreas Pakulat apaku at gmx.de
Tue May 8 10:32:49 UTC 2007


On 08.05.07 12:04:37, Jens Herden wrote:
> 
> > I'm not sure yet how to trigger this, but ideally I'd like to get a
> > QList<QAction*> from each plugin and eventually a QString. Then the
> > context menu will have an entry with the QString that has as a submenu
> > the list of actions.
> 
> Please consider the situation when you want only one action added to the menu. 
> In this case it would be not nice to create a submenu with exactly one 
> action. 

Well, the problem with that approach is that the context menu can be
easily cluttered. I remember the KDev3 context menu for Editor context
was more than 2/3 the height of my 1050 notebook display.

So I'm not sure always putting 1-entry-list directly in the menu is that
much of a good idea.

Andreas

-- 
You single-handedly fought your way into this hopeless mess.




More information about the KDevelop-devel mailing list