KAction subclass ctors lack KGuiItem/KShortCut support

Marc Mutz Marc.Mutz at uni-bielefeld.de
Sat Jul 13 13:26:31 BST 2002


-----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.

Marc

- -- 
Marc Mutz <mutz at kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9MBx33oWD+L2/6DgRAsgYAKCAW2PwCk2I8ubvo6PEJfq1vCYG0QCgsbFr
Vl4aVtvtHKhyC4Qls2npMOY=
=QYJI
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list