# class KShortcutWidget

###

Module | kdeui
Namespace |
Class | KShortcutWidget
Inherits | QWidget

### methods

- KShortcutWidget (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

- applyStealShortcut ( )

  returns Nothing

  Actually remove the shortcut that the user wanted to steal, from the action that was using it.

  To be called before you apply your changes. No shortcuts are stolen until this function is called.

- clearShortcut ( )

  returns Nothing

- isModifierlessAllowed ( )

  returns bool

- setCheckActionCollections (actionCollections)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  actionCollections | QList<KActionCollection |

  Set a list of action collections to check against for conflictuous shortcut.

  If there is a conflictuous shortcut with a KAction, and that his shortcut can be configured (KAction.isShortcutConfigurable() returns true) the user will be prompted for eventually steal the shortcut from this action

  Global shortcuts are automatically checked for conflicts

  Don't forget to call applyStealShortcut to actually steal the shortcut.

  @since 4.1

- setCheckActionList (checkList)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  checkList | QList<QAction |

  Deprecated since 4.1 Use setCheckActionCollections so that KShortcutWidget knows in which action collection to call the writeSettings method after stealing a shortcut from an action.

- setClearButtonsShown (show)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  show | bool |

- setModifierlessAllowed (allow)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  allow | bool |

- setShortcut (cut)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  cut | KShortcut |

- shortcut ( )

  returns KShortcut
  Not implemented

- shortcutChanged (cut)

  returns Nothing
  SIGNAL ("shortcutChanged (const KShortcut&)")

  Argument | Type | Default
  --- | --- | ---
  cut | KShortcut |