KAction and KShortcut in frameworks
Kevin Ottens
ervin at kde.org
Fri May 11 21:19:54 UTC 2012
On Friday 11 May 2012 20:42:09 David Faure wrote:
> On Friday 11 May 2012 19:57:11 Mark wrote:
> > > KShortcutManager::setDefaultShortcut(newAct, Qt::Key_F6);
> >
> > I like this idea!
>
> Good, me too :-)
>
> > I was actually intending to use the Shortcut Editor but i
> > didn't look into specifics yet.
> >
> > With dynamic property you're talking about
> > http://qt-project.org/doc/qt-4.8/qobject.html#setProperty right?
>
> Yes. Just like the current KAction code already does, to store the default
> primary and alternate shortcuts.
Actually back in the day of the 3->4 transition, I modified KAction so that it
stores the info in dynamic properties. It was part of our plan with Simon to
then move to the API you just pointed out above... this plan was unfortunately
never completed (as you can see).
I'd be delighted to see someone carry the torch and complete it now. :-)
Regards.
--
Kévin Ottens, http://ervin.ipsquad.net
KDAB - proud patron of KDE, http://www.kdab.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20120511/4d6ca86a/attachment.sig>
More information about the Kde-frameworks-devel
mailing list