From kde-devel Sun Dec 29 18:34:54 2002 From: "Aaron J. Seigo" Date: Sun, 29 Dec 2002 18:34:54 +0000 To: kde-devel Subject: Re: in-place-editing patch for konqueror bookmarks X-MARC-Message: https://marc.info/?l=kde-devel&m=104118698506285 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 29 December 2002 10:45, Oelewapperke wrote: > On Sunday 29 December 2002 01:02, Aaron J. Seigo wrote: > > On Saturday 28 December 2002 04:50, Aaron J. Seigo wrote: > > > i'm using it in my task oriented menu thingy... i've merged it with > > > KPopupMenu and produced a patch, which is attached... thoughts? > > > > here's a thought: how about me actually attaching the patch. ;-) > > > > note that i haven't actually tested this yet (still compiling stuff), but > > it is a straightforward porting from the rmbMenu subclass to KPopupMenu > > ... i will, of course, test thoroughly before committing it if that is > > the end result... > > Exactly how do you determine which item is clicked on ? static int contextMenuFocusItem(); static QPopupMenu* contextMenuFocus(); they return the menu item and the menu that were the subject of the context menu. so in your slot to remove an item, for instance, you could do: KPopupMenu::contextMenuFocus()->removeItem(KPopupMenu::contextMenuFocusItem()); i haven't added adequate documentation to the header file yet, i know =/ - -- Aaron J. Seigo GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 "Everything should be made as simple as possible, but not simpler" - Albert Einstein -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+D0BP1rcusafx20MRAvnwAKCa0iOPaosGWygaZCc3DIfJMUIyAQCeI87U 3Y8JcNbQQxLtUYjsfTa9fgA= =V0YJ -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<