KDEUI
KShortcutWidget Class Reference
#include <kshortcutwidget.h>

Detailed Description
Definition at line 28 of file kshortcutwidget.h.
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) |
void | setCheckActionList (const QList< QAction * > &checkList) |
void | setClearButtonsShown (bool show) |
void | setModifierlessAllowed (bool allow) |
KShortcut | shortcut () const |
~KShortcutWidget () |
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.
- 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: