KPopupMenu patch

Alexander Kellett lypanov at
Tue Dec 31 13:01:31 GMT 2002

On Mon, Dec 30, 2002 at 05:00:06PM -0700, Aaron J. Seigo wrote:
> The context menu handling allows the application developer to define a context 
> menu for a given menu by calling the QPopupMenu* contextMenu() method and 
> filling that menu with the appropriate items. By connecting to the void 
> aboutToShowContextMenu(KPopupMenu* menu, int menuItem, QPopupMenu* ctxMenu) 
> signal, the application can fill the context menu on demand. By connecting to 
> the context menu's activated signal and using the static KPopupMenu* 
> contextMenuFocus() and int contextMenuFocusItem() methods to retrieve the 
> menu and menu item the context menu was operating on, the application can 
> take the appropriate actions. This approach also allows using a single slot 
> to provide a common contextual functionality to many menus in the same 
> application while keeping memory usage down. 

Excellent. Was really looking for a clean way of
doing this for Konqueror's bookmark menus. Am I
correct in saying that your extension makes this
easier to implement now?


Nice work!
Those titles bugged me for quite a while actually :)


More information about the kde-core-devel mailing list