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

List:       kde-core-devel
Subject:    Re: The future of KAction
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2005-11-11 11:51:29
Message-ID: 200511110451.29564.aseigo () kde ! org
[Download RAW message or body]


On Friday 11 November 2005 02:53, Aaron J. Seigo wrote:
> On Thursday 10 November 2005 23:38, Hamish Rodda wrote:
> > * unplugAll() and isPlugged().  QAction currently does not expose which
> > widgets the action is plugged into.  The only way around this that I can
> > see would be using a QApplication event filter which watches for add and
> > remove action events, and tracks them in KAction.  Deleting the QAction
> > automatically removes it from all of the widgets it is plugged into, so
> > the same effect could be achieved by deleting the action, and recreating
> > it if needed.  Alternatively, the trolls may be persuaded to expose this
> > list if we ask very nicely (I think it's reasonable enough).
>
> or they could just add add something like unplugAll() and isPlugged() which
> wouldn't expose any internals. see attached patch against qt-copy for
> example. (haven't tested compilation, etc yet as my qt-copy is currently
> recompiling)

and a proper patch can be found here:

http://aseigo.bddf.ca/dms/11/262_qt4_qaction.diff

-- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

Full time KDE developer sponsored by Trolltech (http://www.trolltech.com)

[Attachment #3 (application/pgp-signature)]

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

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