Changeset View
Changeset View
Standalone View
Standalone View
src/kshortcuteditwidget.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
85 | connect(m_defaultRadio, SIGNAL(toggled(bool)), | 85 | connect(m_defaultRadio, SIGNAL(toggled(bool)), | ||
86 | this, SLOT(defaultToggled(bool))); | 86 | this, SLOT(defaultToggled(bool))); | ||
87 | connect(m_customEditor, SIGNAL(keySequenceChanged(QKeySequence)), | 87 | connect(m_customEditor, SIGNAL(keySequenceChanged(QKeySequence)), | ||
88 | this, SLOT(setCustom(QKeySequence))); | 88 | this, SLOT(setCustom(QKeySequence))); | ||
89 | connect(m_customEditor, SIGNAL(stealShortcut(QKeySequence,QAction*)), | 89 | connect(m_customEditor, SIGNAL(stealShortcut(QKeySequence,QAction*)), | ||
90 | this, SIGNAL(stealShortcut(QKeySequence,QAction*))); | 90 | this, SIGNAL(stealShortcut(QKeySequence,QAction*))); | ||
91 | #if HAVE_GLOBALACCEL | 91 | #if HAVE_GLOBALACCEL | ||
92 | connect(KGlobalAccel::self(), &KGlobalAccel::globalShortcutChanged, | 92 | connect(KGlobalAccel::self(), &KGlobalAccel::globalShortcutChanged, | ||
93 | [this](QAction *action, const QKeySequence &seq) { | 93 | this, [this](QAction *action, const QKeySequence &seq) { | ||
94 | if (action != m_action) { | 94 | if (action != m_action) { | ||
95 | return; | 95 | return; | ||
96 | } | 96 | } | ||
97 | setKeySequence(seq); | 97 | setKeySequence(seq); | ||
98 | } | 98 | } | ||
99 | ); | 99 | ); | ||
100 | #endif | 100 | #endif | ||
101 | } | 101 | } | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |