• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KShortcutWidget Class Reference

#include <kshortcutwidget.h>

Inheritance diagram for KShortcutWidget:

Inheritance graph
[legend]

List of all members.


Public Slots

void applyStealShortcut ()
void clearShortcut ()
void setShortcut (const KShortcut &cut)

Signals

void shortcutChanged (const KShortcut &cut)

Public Member Functions

bool isModifierlessAllowed ()
 KShortcutWidget (QWidget *parent=0)
void setCheckActionCollections (const QList< KActionCollection * > &actionCollections)
KDE_DEPRECATED void setCheckActionList (const QList< QAction * > &checkList)
void setClearButtonsShown (bool show)
void setModifierlessAllowed (bool allow)
KShortcut shortcut () const
 ~KShortcutWidget ()

Detailed Description

Definition at line 28 of file kshortcutwidget.h.


Constructor & Destructor Documentation

KShortcutWidget::KShortcutWidget ( QWidget *  parent = 0  ) 

Definition at line 41 of file kshortcutwidget.cpp.

KShortcutWidget::~KShortcutWidget (  ) 

Definition at line 54 of file kshortcutwidget.cpp.


Member Function Documentation

void KShortcutWidget::applyStealShortcut (  )  [slot]

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.

Definition at line 101 of file kshortcutwidget.cpp.

void KShortcutWidget::clearShortcut (  )  [slot]

Definition at line 124 of file kshortcutwidget.cpp.

bool KShortcutWidget::isModifierlessAllowed (  ) 

Definition at line 67 of file kshortcutwidget.cpp.

void KShortcutWidget::setCheckActionCollections ( const QList< KActionCollection * > &  actionCollections  ) 

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

Definition at line 94 of file kshortcutwidget.cpp.

void KShortcutWidget::setCheckActionList ( const QList< QAction * > &  checkList  ) 

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.

Definition at line 88 of file kshortcutwidget.cpp.

void KShortcutWidget::setClearButtonsShown ( bool  show  ) 

Definition at line 73 of file kshortcutwidget.cpp.

void KShortcutWidget::setModifierlessAllowed ( bool  allow  ) 

Definition at line 60 of file kshortcutwidget.cpp.

void KShortcutWidget::setShortcut ( const KShortcut &  cut  )  [slot]

Definition at line 109 of file kshortcutwidget.cpp.

KShortcut KShortcutWidget::shortcut (  )  const

Definition at line 80 of file kshortcutwidget.cpp.

void KShortcutWidget::shortcutChanged ( const KShortcut &  cut  )  [signal]


The documentation for this class was generated from the following files:
  • kshortcutwidget.h
  • kshortcutwidget.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal