|
Krita Source Code Documentation
|
#include <KisShortcutsDialog_p.h>
Inheritance diagram for KisShortcutsEditorDelegate:Public Slots | |
| void | hiddenBySearchLine (QTreeWidgetItem *, bool) |
Signals | |
| void | shortcutChanged (QVariant, const QModelIndex &) |
Public Member Functions | |
| bool | eventFilter (QObject *, QEvent *) override |
| KisShortcutsEditorDelegate (QTreeWidget *parent, bool allowLetterShortcuts) | |
| void | setCheckActionCollections (const QList< KisKActionCollection * > checkActionCollections) |
| QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
Private Slots | |
| void | itemActivated (QModelIndex index) |
| void | itemCollapsed (QModelIndex index) |
| void | keySequenceChanged (const QKeySequence &) |
| void | stealShortcut (const QKeySequence &seq, QAction *action) |
Private Attributes | |
| bool | m_allowLetterShortcuts |
| QList< KisKActionCollection * > | m_checkActionCollections |
| List of actionCollections to check for conflicts. | |
| QPersistentModelIndex | m_editingIndex |
| QWidget * | m_editor |
Mixes the KisKShortcutWidget into the treeview used by KisShortcutsEditor. When selecting an shortcut it changes the display from "CTRL-W" to the Widget.
Definition at line 104 of file KisShortcutsDialog_p.h.
| KisShortcutsEditorDelegate::KisShortcutsEditorDelegate | ( | QTreeWidget * | parent, |
| bool | allowLetterShortcuts ) |
Definition at line 36 of file KisShortcutsEditorDelegate.cpp.
References connect(), itemActivated(), itemCollapsed(), and p.
|
override |
Definition at line 218 of file KisShortcutsEditorDelegate.cpp.
References itemActivated(), and m_editor.
|
slot |
Definition at line 206 of file KisShortcutsEditorDelegate.cpp.
References itemActivated(), and m_editingIndex.
|
privateslot |
Definition at line 111 of file KisShortcutsEditorDelegate.cpp.
References connect(), DefaultShortcutRole, Id, keySequenceChanged(), LocalPrimary, m_allowLetterShortcuts, m_checkActionCollections, m_editingIndex, m_editor, Name, KisShortcutsEditorItem::setNameBold(), ShortcutRole, and stealShortcut().
|
privateslot |
When the user collapses a hole subtree of shortcuts then remove eventually extended items. Else we get that artifact bug. See above.
Definition at line 187 of file KisShortcutsEditorDelegate.cpp.
References itemActivated(), and m_editingIndex.
|
privateslot |
Definition at line 277 of file KisShortcutsEditorDelegate.cpp.
References m_editingIndex, and shortcutChanged().
| void KisShortcutsEditorDelegate::setCheckActionCollections | ( | const QList< KisKActionCollection * > | checkActionCollections | ) |
Set a list of action collections to check against for conflicting shortcuts.
Definition at line 283 of file KisShortcutsEditorDelegate.cpp.
References m_checkActionCollections.
|
signal |
|
override |
Definition at line 102 of file KisShortcutsEditorDelegate.cpp.
|
privateslot |
If the user allowed stealing a shortcut we want to be able to undo that.
Definition at line 70 of file KisShortcutsEditorDelegate.cpp.
References KisShortcutsEditorItem::data(), LocalAlternate, LocalPrimary, ObjectRole, and KisShortcutsEditorItem::setKeySequence().
|
private |
Definition at line 122 of file KisShortcutsDialog_p.h.
|
private |
List of actionCollections to check for conflicts.
Definition at line 126 of file KisShortcutsDialog_p.h.
|
mutableprivate |
Definition at line 121 of file KisShortcutsDialog_p.h.
|
private |
Definition at line 123 of file KisShortcutsDialog_p.h.