KActionCollection setAssociatedWidget problems

Hamish Rodda rodda at kde.org
Mon Oct 22 11:56:10 BST 2007


On Mon, 22 Oct 2007 08:34:20 pm Thomas Zander wrote:
> On Monday 22 October 2007 10:59:06 David Faure wrote:
> > I know that I fixed a bug in konqpopupmenu where a call to
> > setAssociatedWidget made all actions be plugged twice into the menu. [and
> > this was really not obvious from the code]
> >
> > Somehow, the automatic setting of the shortcut context would be good to
> > have, but the automatic addAction seems very confusing; especially since
> > for popup menus you usually add actions yourself, and for the rest we use
> > XMLGUI -- or what do I miss here?
>
> I found this bug;
> http://trolltech.com/developer/task-tracker/index_html?method=entry&id=1416
>46
>
> which is fixed for Qt4.4 by adding an enum value;
> Qt::WidgetWithChildrenShortcut which seems to me to be the most sane
> default for KActionCollection. (and is most like what we were used to in
> Qt3)

Yes, I submitted that bug, it's great to see it implemented :)  We should 
definitely use it when available.

Cheers,
Hamish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071022/6e61358d/attachment.sig>


More information about the kde-core-devel mailing list