|
Krita Source Code Documentation
|
#include <kshortcutwidget.h>
Inheritance diagram for KisKShortcutWidget:Public Slots | |
| void | applyStealShortcut () |
| void | clearShortcut () |
| void | setShortcut (const QList< QKeySequence > &cut) |
Signals | |
| void | shortcutChanged (const QList< QKeySequence > &cut) |
Public Member Functions | |
| bool | isModifierlessAllowed () |
| KisKShortcutWidget (QWidget *parent=0) | |
| void | setCheckActionCollections (const QList< KisKActionCollection * > &actionCollections) |
| void | setClearButtonsShown (bool show) |
| void | setModifierlessAllowed (bool allow) |
| QList< QKeySequence > | shortcut () const |
| ~KisKShortcutWidget () override | |
Properties | |
| bool | modifierlessAllowed |
Private Attributes | |
| KisKShortcutWidgetPrivate *const | d |
Friends | |
| class | KisKShortcutWidgetPrivate |
Definition at line 21 of file kshortcutwidget.h.
| KisKShortcutWidget::KisKShortcutWidget | ( | QWidget * | parent = 0 | ) |
Definition at line 26 of file kshortcutwidget.cpp.
References connect(), d, KisKShortcutWidgetPrivate::holdChangedSignal, and KisKShortcutWidgetPrivate::ui.
|
override |
|
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 76 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
|
slot |
Definition at line 105 of file kshortcutwidget.cpp.
References setShortcut().
| bool KisKShortcutWidget::isModifierlessAllowed | ( | ) |
Definition at line 49 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
| void KisKShortcutWidget::setCheckActionCollections | ( | const QList< KisKActionCollection * > & | actionCollections | ) |
Set a list of action collections to check against for conflicting shortcut.
If there is a conflicting 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.
Definition at line 69 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
| void KisKShortcutWidget::setClearButtonsShown | ( | bool | show | ) |
Definition at line 54 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
| void KisKShortcutWidget::setModifierlessAllowed | ( | bool | allow | ) |
Definition at line 43 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
Definition at line 83 of file kshortcutwidget.cpp.
References KisKShortcutWidgetPrivate::cut, d, KisKShortcutWidgetPrivate::holdChangedSignal, shortcutChanged(), and KisKShortcutWidgetPrivate::ui.
| QList< QKeySequence > KisKShortcutWidget::shortcut | ( | ) | const |
Definition at line 60 of file kshortcutwidget.cpp.
References d, and KisKShortcutWidgetPrivate::ui.
|
friend |
Definition at line 72 of file kshortcutwidget.h.
|
private |
Definition at line 73 of file kshortcutwidget.h.
|
readwrite |
Definition at line 24 of file kshortcutwidget.h.