KAction subclass ctors lack KGuiItem/KShortCut support

Simon Hausmann hausmann at kde.org
Sun Jul 14 10:44:29 BST 2002


On Sat, Jul 13, 2002 at 02:26:31PM +0200, Marc Mutz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi!
> 
> Is this intentional? I've come to like the way to specify a tooltip 
> without the need for a local KAction* variable, like
> 
> (void)new KAction( KGuiItem( i18n("do something"), "start",
>                              i18n("Does something with your data.") ),
>                    Key_Enter, this, SLOT(slotDoSomething()),
>                    actionCollection(), "file_do_something" );
> 
> But e.g. KWidgetAction and others don't have a ctor that takes a 
> KGuiItem.
> 
> If nobody else does this, I will develop it in the 3_0_branch and 
> forward port it to HEAD.

Sounds like a good addition.

Simon




More information about the kde-core-devel mailing list