class KShortcutsDialog |
|
|
Dialog for configuration of KActionCollection and KGlobalAccel. The KShortcutsDialog class is used for configuring dictionaries of key/action associations for KActionCollection and KGlobalAccel. It uses the KShortcutsEditor widget and offers buttons to set all keys to defaults and invoke on-line help. Several static methods are supplied which provide the most convenient interface to the dialog. The most common and most encouraged use is with KActionCollection.
KShortcutsDialog.configure( actionCollection() );
Author Nicolas Hadacek |
|
Constructs a KShortcutsDialog as a child of parent. Set bAllowLetterShortcuts to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. |
|
|
Add all actions of the collection to the ones displayed and configured by the dialog. Call insert with each of your to-be-configured collections in turn.
title - the title associated with the collection (if null, the KAboutData.progName() of the collection's componentData is used) |
|
Run the dialog and call commitChanges() if bSaveSettings is true. |
|
Commit key setting changes so that changed settings actually become active. This method is implicitly called from configure(bool) if bSaveSettings is true. Pops up a modal dialog for configuring key settings. The new shortcut settings will be active if the user presses OK. If bSaveSettings if true, the settings will also be saved back to the *uirc file which they were intially read from.
collection - the KActionCollection to configure allowLetterShortcuts - set to KShortcutsEditor.LetterShortcutsDisallowed if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. parent - the parent widget to attach to bSaveSettings - if true, the settings will also be saved back to the *uirc file which they were intially read from. Returns Accept if the dialog was closed with OK, Reject otherwise. |