[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: problem with ActionList (long)
From: Michael Reiher <michael.reiher () gmx ! de>
Date: 2002-02-26 17:35:13
[Download RAW message or body]
Jason Harris wrote:
>
> Thanks, Michael, that fixed my problem!
>
> However, now I'm on to a new problem: I want to conect each of my dynamic
> menu items to one Slot; how do I tell the slot which menu item was activated?
> I'm trying to use the QPopupMenu::activated(int) Signal, which is supposed to
> identify the activated menu item, but I haven't been able to make this work
> yet. Is there a better way to go about it?
>
When constructing your actions give them all a unique name (you have cs_def and
so on there), then connect their activated()(or what ever) signal all to the
same slot. In this slot simply query sender()->name() and do what's needed for
this action.
Greets
Michael
>> 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