[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: in-place-editing patch for konqueror bookmarks
From:       Oelewapperke <oelewapperke () ulyssis ! org>
Date:       2002-12-30 9:36:55
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 29 December 2002 19:34, Aaron J. Seigo wrote:
> 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 =/

static ? wtf ? and what if you are in a submenu (2 menu's will try to update 
this variable simultaneously) ? or right click on an item in a right-click 
menu ? 

Oelewapperke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+EBO3JFU6C5Uo8MgRAnHNAJ4k4yAhqwn5COa9PMgVXsHa5bS46wCggtyO
sWAed2hJVB9zsuWcl97UpDk=
=lHFm
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic