Changeset View
Changeset View
Standalone View
Standalone View
libs/widgetutils/xmlgui/KisShortcutsEditor_p.cpp
Context not available. | |||||
35 | #include <ksharedconfig.h> | 35 | #include <ksharedconfig.h> | ||
---|---|---|---|---|---|
36 | #include <KConfigGroup> | 36 | #include <KConfigGroup> | ||
37 | #include "kis_action_registry.h" | 37 | #include "kis_action_registry.h" | ||
38 | #include <KisKineticScroller.h> | ||||
38 | 39 | | |||
39 | //--------------------------------------------------------------------- | 40 | //--------------------------------------------------------------------- | ||
40 | // KisShortcutsEditorPrivate | 41 | // KisShortcutsEditorPrivate | ||
Context not available. | |||||
80 | ui.list->setEditTriggers(QAbstractItemView::NoEditTriggers); | 81 | ui.list->setEditTriggers(QAbstractItemView::NoEditTriggers); | ||
81 | ui.list->setAlternatingRowColors(true); | 82 | ui.list->setAlternatingRowColors(true); | ||
82 | 83 | | |||
84 | QScroller *scroller = KisKineticScroller::createPreconfiguredScroller(ui.list); | ||||
85 | if (scroller){ | ||||
86 | QObject::connect(scroller, SIGNAL(stateChanged(QScroller::State)), | ||||
87 | q, SLOT(slotScrollerStateChanged(QScroller::State))); | ||||
88 | } | ||||
89 | | ||||
83 | QObject::connect(delegate, SIGNAL(shortcutChanged(QVariant,QModelIndex)), | 90 | QObject::connect(delegate, SIGNAL(shortcutChanged(QVariant,QModelIndex)), | ||
84 | q, SLOT(capturedShortcut(QVariant,QModelIndex))); | 91 | q, SLOT(capturedShortcut(QVariant,QModelIndex))); | ||
85 | //hide the editor widget chen its item becomes hidden | 92 | //hide the editor widget chen its item becomes hidden | ||
Context not available. |