kkeydialog
Andreas Hartmetz
ahartmetz at gmail.com
Sat Oct 6 01:00:07 BST 2007
2007/10/6, Anders Lund <anders at alweb.dk>:
> Hi,
>
> Saving shortcuts in kate, i noticed that kkeydialog only saves one shortcut pr
> file when saving to ui.rc files. So if I change one shortcut in a plugin,
> other custumized shortcuts in that plugin are lost.
>
> Setting a shortcut to 'none' is appearently not saved at all.
>
> I havent tested with apps other than kate yet, but though kate is complex this
> should still work, right?
>
> The code in Kate showing the dialog is as below, if there are mistakes in that
> please let me know:
>
> KShortcutsDialog dlg ( KShortcutsEditor::AllActions,
> KShortcutsEditor::LetterShortcutsDisallowed, this );
>
> QList<KXMLGUIClient*> clients = guiFactory()->clients();
>
> foreach(KXMLGUIClient *client, clients)
> dlg.addCollection ( client->actionCollection(),
> client->componentData().aboutData()->programName() );
>
> // reloadXML() in all clients
There have been quite some changes in the shortcuts area (many of them
by me) and I haven't looked at the XmlGui(<-that is how it *should* be
called ;) ) stuff yet. Funny how bugs start showing up *now* but I'll
se what I can do.
Looks like a problem with the changes to KShortcut to me.
More information about the kde-core-devel
mailing list