Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KHotkeys
Commits
f42a8446
Commit
f42a8446
authored
May 25, 2020
by
Martin Tobias Holmedahl Sandsmark
Browse files
fix wonky connection
parent
1d60f46f
Changes
2
Hide whitespace changes
Inline
Side-by-side
kcm_hotkeys/triggers/shortcut_trigger_widget.cpp
View file @
f42a8446
...
...
@@ -25,6 +25,7 @@
#include
<QKeySequence>
#include
<QDebug>
#include
<KGlobalAccel>
ShortcutTriggerWidget
::
ShortcutTriggerWidget
(
KHotKeys
::
ShortcutTrigger
*
trigger
,
QWidget
*
parent
)
...
...
@@ -48,8 +49,8 @@ ShortcutTriggerWidget::ShortcutTriggerWidget( KHotKeys::ShortcutTrigger *trigger
// new key sequencence. It doesn't matter if the user changed the sequence
// here.
connect
(
trigger
,
SIGNAL
(
globalShortcutChanged
(
QKeySequence
))
,
this
,
SLOT
(
_k_globalShortcutChanged
(
QKeySequence
))
);
KGlobalAccel
::
self
(),
&
KGlobalAccel
::
globalShortcutChanged
,
this
,
&
ShortcutTriggerWidget
::
_k_globalShortcutChanged
);
}
...
...
@@ -91,7 +92,7 @@ bool ShortcutTriggerWidget::isChanged() const
}
void
ShortcutTriggerWidget
::
_k_globalShortcutChanged
(
const
QKeySequence
&
seq
)
void
ShortcutTriggerWidget
::
_k_globalShortcutChanged
(
QAction
*
action
,
const
QKeySequence
&
seq
)
{
shortcut_trigger_ui
.
shortcut
->
setKeySequence
(
seq
);
}
...
...
kcm_hotkeys/triggers/shortcut_trigger_widget.h
View file @
f42a8446
...
...
@@ -19,6 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#include
<QAction>
#include
"trigger_widget_base.h"
#include
"ui_shortcut_trigger_widget.h"
...
...
@@ -55,7 +57,7 @@ private Q_SLOTS:
//! Invoked if the global shortcut is changed for the corresponding
// shortcut trigger
void
_k_globalShortcutChanged
(
const
QKeySequence
&
);
void
_k_globalShortcutChanged
(
QAction
*
action
,
const
QKeySequence
&
seq
);
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment