|
Krita Source Code Documentation
|
#include <KisShortcutsDialog_p.h>
Inheritance diagram for ShortcutEditWidget:Public Slots | |
| void | setKeySequence (const QKeySequence &activeSeq) |
| Set the displayed sequences. | |
Signals | |
| void | keySequenceChanged (const QKeySequence &) |
| Emitted when the key sequence is changed. | |
| void | stealShortcut (const QKeySequence &seq, QAction *action) |
Public Member Functions | |
| KisKKeySequenceWidget::ShortcutTypes | checkForConflictsAgainst () const |
| bool | multiKeyShortcutsAllowed () const |
| void | paintEvent (QPaintEvent *pe) override |
| void | setAction (QObject *action) |
| void | setCheckActionCollections (const QList< KisKActionCollection * > checkActionCollections) |
| void | setCheckForConflictsAgainst (KisKKeySequenceWidget::ShortcutTypes) |
| void | setComponentName (const QString componentName) |
| void | setMultiKeyShortcutsAllowed (bool) |
| ShortcutEditWidget (QWidget *viewport, const QKeySequence &defaultSeq, const QKeySequence &activeSeq, bool allowLetterShortcuts) | |
Private Slots | |
| void | defaultToggled (bool) |
| void | setCustom (const QKeySequence &) |
Private Attributes | |
| QObject * | m_action |
| KisKKeySequenceWidget * | m_customEditor |
| QRadioButton * | m_customRadio |
| QKeySequence | m_defaultKeySequence |
| QLabel * | m_defaultLabel |
| QRadioButton * | m_defaultRadio |
| bool | m_isUpdating |
Edit a shortcut. This widget is displayed when a user clicks on a shortcut from the list. It contains radio buttons choosing between default and custom shortcuts, and a button to configure the custom shortcut.
Definition at line 165 of file KisShortcutsDialog_p.h.
| ShortcutEditWidget::ShortcutEditWidget | ( | QWidget * | viewport, |
| const QKeySequence & | defaultSeq, | ||
| const QKeySequence & | activeSeq, | ||
| bool | allowLetterShortcuts ) |
Definition at line 41 of file KisShortcutEditWidget.cpp.
References connect(), defaultToggled(), keySequenceChanged(), m_customEditor, m_customRadio, m_defaultLabel, m_defaultRadio, setCustom(), setKeySequence(), KisKKeySequenceWidget::setModifierlessAllowed(), and stealShortcut().
| KisKKeySequenceWidget::ShortcutTypes ShortcutEditWidget::checkForConflictsAgainst | ( | ) | const |
Definition at line 78 of file KisShortcutEditWidget.cpp.
References KisKKeySequenceWidget::checkForConflictsAgainst, and m_customEditor.
|
privateslot |
Definition at line 84 of file KisShortcutEditWidget.cpp.
References KisKKeySequenceWidget::clearKeySequence(), KisKKeySequenceWidget::isKeySequenceAvailable(), keySequenceChanged(), m_customEditor, m_customRadio, m_defaultKeySequence, and m_isUpdating.
|
signal |
Emitted when the key sequence is changed.
| bool ShortcutEditWidget::multiKeyShortcutsAllowed | ( | ) | const |
Definition at line 133 of file KisShortcutEditWidget.cpp.
References m_customEditor, and KisKKeySequenceWidget::multiKeyShortcutsAllowed.
|
override |
Definition at line 26 of file KisShortcutEditWidget.cpp.
References p.
| void ShortcutEditWidget::setAction | ( | QObject * | action | ) |
Definition at line 138 of file KisShortcutEditWidget.cpp.
References m_action.
| void ShortcutEditWidget::setCheckActionCollections | ( | const QList< KisKActionCollection * > | checkActionCollections | ) |
Definition at line 110 of file KisShortcutEditWidget.cpp.
References m_customEditor, and KisKKeySequenceWidget::setCheckActionCollections().
| void ShortcutEditWidget::setCheckForConflictsAgainst | ( | KisKKeySequenceWidget::ShortcutTypes | types | ) |
Definition at line 117 of file KisShortcutEditWidget.cpp.
References m_customEditor, and KisKKeySequenceWidget::setCheckForConflictsAgainst().
| void ShortcutEditWidget::setComponentName | ( | const QString | componentName | ) |
Definition at line 122 of file KisShortcutEditWidget.cpp.
References m_customEditor, and KisKKeySequenceWidget::setComponentName().
|
privateslot |
Definition at line 144 of file KisShortcutEditWidget.cpp.
References keySequenceChanged(), m_isUpdating, and setKeySequence().
|
slot |
Set the displayed sequences.
Definition at line 165 of file KisShortcutEditWidget.cpp.
References KisKKeySequenceWidget::clearKeySequence(), KisKKeySequenceWidget::keySequence(), m_customEditor, m_customRadio, m_defaultKeySequence, m_defaultRadio, and KisKKeySequenceWidget::setKeySequence().
| void ShortcutEditWidget::setMultiKeyShortcutsAllowed | ( | bool | allowed | ) |
Definition at line 127 of file KisShortcutEditWidget.cpp.
References m_customEditor, and KisKKeySequenceWidget::setMultiKeyShortcutsAllowed().
|
signal |
|
private |
Definition at line 219 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 217 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 216 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 214 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 213 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 215 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 218 of file KisShortcutsDialog_p.h.