KDEUI
#include <kshortcutwidget.h>
Public Slots | |
void | applyStealShortcut () |
void | clearShortcut () |
void | setShortcut (const KShortcut &cut) |
Signals | |
void | shortcutChanged (const KShortcut &cut) |
Public Member Functions | |
KShortcutWidget (QWidget *parent=0) | |
~KShortcutWidget () | |
bool | isModifierlessAllowed () |
void | setCheckActionCollections (const QList< KActionCollection * > &actionCollections) |
void | setCheckActionList (const QList< QAction * > &checkList) |
void | setClearButtonsShown (bool show) |
void | setModifierlessAllowed (bool allow) |
KShortcut | shortcut () const |
Properties | |
bool | modifierlessAllowed |
Detailed Description
Definition at line 31 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
|
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 103 of file kshortcutwidget.cpp.
|
slot |
Definition at line 126 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 96 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 89 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.
|
slot |
Definition at line 111 of file kshortcutwidget.cpp.
KShortcut KShortcutWidget::shortcut | ( | ) | const |
Definition at line 80 of file kshortcutwidget.cpp.
|
signal |
Property Documentation
|
readwrite |
Definition at line 34 of file kshortcutwidget.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.