Commit f42a8446 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark
Browse files

fix wonky connection

parent 1d60f46f
......@@ -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);
}
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment